Â
In this we are going to see a basic program to check if dictionary is empty or not in Python Programming Language.
dict = {1: 'a',2: 'b',3: 'c',4: 'd',5: 'e'}
if len(dict) != 0:
print("Dictionary is not empty")
else:
print("Dictionary is empty")
# Coded By DHIRAJ SHELKE
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP