The wedding seating chart is {seat: name}, but guests only know their own name. Write find_seats(seats) to return the flipped chart {name: seat}, in the same order. Every name appears once; an empty chart gives {}.
find_seats({"A1": "Mia", "A2": "Leo"})→{'Mia': 'A1', 'Leo': 'A2'}find_seats({})→{}def find_seats(seats):
by_name = {}
# your code here: a dict comprehension that swaps each key and value
return by_name
Run tries the examples. When they look right, Submit.