Turning a list of tuples into a dictionary in Python

friends = [("Anne", 30), ("Mark", 25), ("John", 27)]
friend_ages = dict(friends) # {"Anne": 30, "Mark": 25, "John": 27}