What will be the output of the following code:
keys ={’A’,’B’,’C’,’D’}
value =[10]
dict1 = dict.fromkeys(keys,value)
print (dict1)
value.append(3)
print(dict1)
value =[10]
dict1 = dict.fromkeys(keys,value)
print (dict1)
value.append(3)
print(dict1)
Answer:
The rest of the post is locked. Join Teachoo Black to see the full post.