Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Python Basics Meet Python Variables

Variables python basics. I am confused?

I typed in the console and it comes as an error

Louise St. Germain
Louise St. Germain
19,424 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
Rob Hafemeister
1,615 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

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