?
What will be the output of the following Python code snippet?
What will be the output of the following Python code snippet?
a={1:"A",2:"B",3:"C"}
a.setdefault(4,"D")
print(a)
a={1:"A",2:"B",3:"C"}
a.setdefault(4,"D")
print(a)
Join the Discussion
Login to post a comment or share your explanation.
Login