Hi everyone:
So, I'm really new to python and I cannot figure out how to open my file using TextWranger. For example, I have a file called fun.py with this information in it:
import turtle
turtle.forward( 100)
raw_input()
and everytime I call the file in the terminal using ~/Desktop (the file is on my desktop) and then call python fun.py, I get this message:
>>> python fun.py
File "<stdin>", line 1
python fun.py
^
SyntaxError: invalid syntax
>>>
what's the matter with my syntax? I'm very confused and frustrated. Thanks!!
So, I'm really new to python and I cannot figure out how to open my file using TextWranger. For example, I have a file called fun.py with this information in it:
import turtle
turtle.forward( 100)
raw_input()
and everytime I call the file in the terminal using ~/Desktop (the file is on my desktop) and then call python fun.py, I get this message:
>>> python fun.py
File "<stdin>", line 1
python fun.py
^
SyntaxError: invalid syntax
>>>
what's the matter with my syntax? I'm very confused and frustrated. Thanks!!
Comment