Run
myDict = {'a':'apple', 'b':'banana', 'c':'cherry'} if (len(myDict) == 0): print('The dictionary is empty.') else: print('The dictionary is not empty.')
Output