print(f"{person}:") SyntaxError: invalid syntax when running it - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: print(f"{person}:") SyntaxError: invalid syntax when running it (/thread-30745.html) Pages:
1
2
|
RE: print(f"{person}:") SyntaxError: invalid syntax when running it - Axel_Erfurt - Nov-06-2020 python heredityarya.py data.csv starts the script with python2 which has no f-strings
RE: print(f"{person}:") SyntaxError: invalid syntax when running it - snippsat - Nov-07-2020 (Nov-05-2020, 08:58 PM)AryaIC Wrote: Ok. But already have Python 3.8.3 downloaded from python.org. And the problem/issue remains the same.Use Homebrew to mange install and alias to Python 3 on Mac,as you use.The right and wrong way to set Python 3 as default on a Mac Under Have Homebrew manage Python 3 .There also in the post a some about pyenv brew install pyenv Look also at this pyenv Simple Python Version Management wiki for Mac. |