Python Periksa apakah objek kosong
dict1 = {}
if dict1:
print("dict1 Not Empty")
else:
print("dict1 is Empty")
if bool(dict1):
print("dict1 Not Empty")
else:
print("dict1 is Empty")
MitchAloha