Apr-16-2020, 06:20 AM
I'm getting a syntax error for the following code that I copied form a text book:
Code:
Code:
users = { "aeinstein": { "first": "albert", "last": "einstein", "location": "princeton" }, "mccurie": { "first": "marie", "last": "curie", "location": "paris", }, } for username, user_info in users.items(): print("f\nUsername: {username}") full_name = f"{user_info["first"]} {user_info["last"]}" location = user_info["location"] print(f"\tFull name: {full_name.title()}") print("f\tlocation: {location.title()}")Here is the line that Python (Spyder) doesnt't like:
full_name = f"{user_info["first"]} {user_info["last"]}"