Python Forum
print(f"{person}:") SyntaxError: invalid syntax when running it
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
print(f"{person}:") SyntaxError: invalid syntax when running it
#11
python heredityarya.py data.csv starts the script with python2 which has no f-strings
Reply
#12
(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.
AryaIC likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Making a Class Person ? Kessie1971 3 2,069 Apr-23-2023, 05:20 PM
Last Post: deanhystad
  Invalid syntax Slome 2 2,976 May-13-2022, 08:31 PM
Last Post: Slome
  Invalid syntax error, where? tucktuck9 2 4,299 May-03-2020, 09:40 AM
Last Post: pyzyx3qwerty
  How can create class Person :( Azilkhan 1 2,580 Nov-21-2019, 08:12 AM
Last Post: DeaD_EyE
  Invalid syntax defining a dictionary? ep595 6 6,968 Nov-19-2019, 08:06 PM
Last Post: ThomasL
  Syntax Error: Invalid Syntax in a while loop sydney 1 4,895 Oct-19-2019, 01:40 AM
Last Post: jefsummers
  [split] Please help with SyntaxError: invalid syntax Mason 1 2,876 Apr-28-2019, 06:58 PM
Last Post: Yoriz
  SyntaxError: Invalid syntax in a while loop ludegrae 3 17,165 Dec-18-2018, 04:12 PM
Last Post: Larz60+
  SyntaxError: invalid syntax at run .py tuxo9999 10 11,796 Aug-23-2018, 03:58 PM
Last Post: Axel_Erfurt
  Homework: Invalid syntax using if statements chehortop 3 4,501 Mar-01-2018, 04:38 AM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020