Question #103

What is the output of the following code snippet?
my_dict = {"a": 1, "b": 2, "c": 3}
for value in my_dict.items():

items() returns a set-like view (type dict_items) backed by the dict. Here, only using value with the for loop returns each element of the set-like view. (

Comment on Disqus:

Comment on Twitter:

Question difficulty: πŸ”΅πŸ”΅πŸ”΅πŸ”΅πŸ”΅