Q. What would be the output of following code?


mydict = {"cat":12, "dog": 6, "elephant":23}
mydict["mouse"] = mydict["cat"] + mydict["dog"]
print (mydict["mouse"])


Answer :-


Output :-


18
>>>

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post