programming-examples/python/Dictionary/Python program to check a dictionary is empty or not.py
2019-11-15 12:59:38 +01:00

4 lines
79 B
Python

my_dict = {}
if not bool(my_dict):
print("Dictionary is empty")