Run
myDict = {} if not myDict: print('The dictionary is empty.') else: print('The dictionary is not empty.')
Output