Keys and values

Report a typo

What's the difference between keys, values, items dictionary methods? Match the methods with their possible output based on the following dictionary:

random_dict = {'a': 20, 'b': 40, 'c': 60, 'd': 80, 'e': 100}

Note that there's one extra option.

Match the items from left and right columns
random_dict.keys()
random_dict.values()
random_dict.items()
Extra option
['a', 'b', 'c', 'd', 'e']
[20, 40, 60, 80, 100]
['20', '40', '60', '80', '100']
[('a', 20), ('b', 40), ('c', 60), ('d', 80), ('e', 100)]
___

Create a free account to access the full topic