f-string python invalid sysntax
问题 I recently trying to learn to code in python and I have zero knowledge in any programming languages our there and I encounter this problem in it, in which I am trying to use the f-string function. My Python version is 3.6.2 and here's the code that I am trying to run greeting = 'Hello' name = 'John' message = f'{greeting} {name}. Welcome!' print(message) and here's the error it shows me. File "/Users/RQ/Desktop/intro.py", line 16 message = f'{greeting} {name}. Welcome!' ^ SyntaxError: invalid