Help with Medical Insurance

I’m working on the medical insurance project in python data science path. I have code that matches and hint says;
Use the following code to sort medical_records and then print the result:

medical_records.sort()print("Here are the medical records sorted by insurance cost: " + str(medical_records))

The output should look like the following:

Here are the medical records sorted by insurance cost: [(2750.0, 'Nikita'), (4816.0, 'Sara'), (5054.0, 'Paul'), (5360.0, 'Jide'), (6072.0, 'Emily'), (6839.0, 'Xia'), (7640.0, 'Aaron'), (8320.0, 'Priscilla'), (12064.0, 'Paul'), (13262.0, 'Mohamed'), (14724.0, 'Valentina')]

But my output is;
Here are the medical records sorted by insurance cost: [(‘Aaron’, 7640.0), (‘Emily’, 6072.0), (‘Jide’, 5360.0), (‘Mohamed’, 13262.0), (‘Nikita’, 2750.0), (‘Paul’, 5054.0), (‘Paul’, 12064.0), (‘Priscilla’, 8320.0), (‘Sara’, 4816.0), (‘Valentina’, 14724.0), (‘Xia’, 6839.0)]

How can my code match what code academy says is solution, but I get a different output? Any tips that can help? I’ve read through a couple others on this subject and just not understanding the issue.

Looks like your names and numbers in the tuples are in the opposite order from tuples in what the output should look like.

('Nikita', 2750.0)

instead of

(2750.0, 'Nikita')
2 Likes