← Back to challenges

Is the Dictionary Empty?

PythonMediumobjectslanguage_fundamentalsvalidation

Instructions

Write a function that returns True if a dictionary is empty, and False otherwise.

Examples

is_empty({}) ➞ True

is_empty({ "a": 1 }) ➞ False

Notes

N/A

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Format II: Argument Indices