programming-examples/python/Dictionary/Python program to check a dictionary is empty or not.py

4 lines
79 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
my_dict = {}
if not bool(my_dict):
print("Dictionary is empty")