Feb-15-2018, 01:16 PM
Hi All
I have just started learning python and working on my MacBook Air using Terminal
I have saved a simple script with just one print command and named it ex1.py.
BTW I am using Python3.6.4
So I go to terminal and type Python3.6
It loads the python
I type Python3.6 ex1.py and press Enter and it gives me syntax error and points it to 6 in Python3.6
If I type Python3 ex1.py then it gives me same error but now points to 1 in ex1.py
Can anyone help
I have just started learning python and working on my MacBook Air using Terminal
I have saved a simple script with just one print command and named it ex1.py.
BTW I am using Python3.6.4
So I go to terminal and type Python3.6
It loads the python
I type Python3.6 ex1.py and press Enter and it gives me syntax error and points it to 6 in Python3.6
If I type Python3 ex1.py then it gives me same error but now points to 1 in ex1.py
Can anyone help