Python Forum

Full Version: I need help with a code
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I dont know what Im doing wrong.

When writing this code I get syntax error. I have Python 3.7 installed

first_name = "cuong"
last_name = "bui"
full_name = f"{first_name} {last_name}"
print(full_name)
Anyone that can solve this problem?
Works fine for me.
Post the entire error traceback (in error tags)
(Sep-02-2019, 05:17 AM)cuongvanbui Wrote: [ -> ]I have Python 3.7 installed

Installed Python version doesn't equal Python actually used. You should verify what version your system uses. On MacOS one can do in terminal: python -V
Please share the snippet of error code