Question: 1. What will be the output in the following programs? If there is an error in any, explain why. key = [one, eins, uno]
1. What will be the output in the following programs? If there is an error in any, explain why. key = ["one", "eins", "uno"] value = 1 key = 1 value = ["one", "eins", "uno"] dictionary = {} dictionary [key] = value print (dictionary) Output: dictionary = {} dictionary [key] = value print (dictionary) Output:
Step by Step Solution
3.34 Rating (157 Votes )
There are 3 Steps involved in it
1 1error Reason If you want to assign the same value to multiple keys in the dictio... View full answer
Get step-by-step solutions from verified subject matter experts
