Python Forum
I need help with a code - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: I need help with a code (/thread-20837.html)



I need help with a code - cuongvanbui - Sep-02-2019

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?


RE: I need help with a code - stranac - Sep-02-2019

Works fine for me.
Post the entire error traceback (in error tags)


RE: I need help with a code - perfringo - Sep-02-2019

(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


RE: I need help with a code - Malt - Sep-02-2019

Please share the snippet of error code