?
What will be the output of the following code:
What will be the output of the following code:
keys = ['a', 'b', 'c']
values = 0
my_dict = dict.fromkeys(keys, values)
print(my_dict)
values = 0
my_dict = dict.fromkeys(keys, values)
print(my_dict)
Join the Discussion
Login to post a comment or share your explanation.
Login