Is the Dictionary Empty?

Published by luckyluke19 in

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

Watch a quick demo on how Edabit works.