Aby sprawdzić pogodę, słownik jest pusty lub nie w Pythonie
empty_dict = {}
if empty_dict:
print('Dictionary is not empty!')
else:
print('Dictionary is empty!')
Glorious Gnat