Value

Report a typo

Here are three objects:

person1 = ("James", "Ryan")
person2 = ("Ryan", "James")
person3 = ("Ryan", "James")

These tuples represent a person with their first and last name. A dictionary with their ages has been created:

age_dict = {}
age_dict[person1] = 36
age_dict[person2] = 27
age_dict[person3] = 42

What will be the output of the following code?

print(age_dict[person2])
Enter a number
___

Create a free account to access the full topic