Проверка на питоне, пустое ли словарь
empty_dict = {}
if empty_dict:
print('Dictionary is not empty!')
else:
print('Dictionary is empty!')
Glorious Gnat
empty_dict = {}
if empty_dict:
print('Dictionary is not empty!')
else:
print('Dictionary is empty!')