Apr-18-2020, 06:04 PM
Hello. My Terminal cannot execute what I write on IDLE.
The input was very simple.
x="hello"
print(x)
What do I have to do on Python 3.8.2 with '^' mark?
I asked an assistant of University professor, but he cannot answer...
Below is the output from Terminal.
/////////////////////////////////////////////
ren@RENs-MacBook-Pro ~ % python hello2.py
File "hello2.py", line 1
Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18)
^
SyntaxError: invalid syntax
ren@RENs-MacBook-Pro ~ % python3 hello2.py
File "hello2.py", line 1
Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18)
^
SyntaxError: invalid syntax
//////////////////////////////////////////////
The input was very simple.
x="hello"
print(x)
What do I have to do on Python 3.8.2 with '^' mark?
I asked an assistant of University professor, but he cannot answer...
Below is the output from Terminal.
/////////////////////////////////////////////
ren@RENs-MacBook-Pro ~ % python hello2.py
File "hello2.py", line 1
Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18)
^
SyntaxError: invalid syntax
ren@RENs-MacBook-Pro ~ % python3 hello2.py
File "hello2.py", line 1
Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18)
^
SyntaxError: invalid syntax
//////////////////////////////////////////////