Apr-16-2020, 07:16 AM
Problem is that you have strings within a string. Python can't tell where one begins and the other one ends. you have three ways to fix this.
1. change the outer string from double quotes to single quotes.
1. change the outer string from double quotes to single quotes.
full_name = f'{user_info["first"]} {user_info["last"]}'2. change the inner strings to use single quotes
full_name = f"{user_info['first']} {user_info['last']}"3. use the format() method
full_name = "{} {}".format(user_info["first"],user_info["last"])