Python Python Basics Meet Python Variables

samuel octelene
samuel octelene
1,014 Points

Variables python basics. I am confused?

I typed in the console and it comes as an error

Louise St. Germain
Louise St. Germain
Treehouse Moderator 15,542 Points

Hi Samuel,

Can you post what you typed into the console, so we can see where the problem might be?

Thank you!

2 Answers

Rob Hafemeister
PRO
Rob Hafemeister
Pro Student 573 Points

Sam,

Looks to me like you included 'python hello.py' in the hello.py file. If this is the case remove that line, save the file and then execute the following at the command prompt. python hello.py

samuel octelene
samuel octelene
1,014 Points

python hello.py
File "<stdin>", line 1
python hello.py
^
SyntaxError: invalid syntax