1test_dict = {}
2
3if not test_dict:
4 print "Dict is Empty"
5
6
7if not bool(test_dict):
8 print "Dict is Empty"
9
10
11if len(test_dict) == 0:
12 print "Dict is Empty"
1empty_dict = {}
2
3if empty_dict:
4 print('Dictionary is not empty!')
5else:
6 print('Dictionary is empty!')