to check weather a dictionary is empty or not in python code example
Example: to check weather a dictionary is empty or not in python
my_dict = {}
if not bool(my_dict):
print("Dictionary is empty")
my_dict = {}
if not bool(my_dict):
print("Dictionary is empty")