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 trialsamuel octelene
1,014 PointsVariables python basics. I am confused?
I typed in the console and it comes as an error
2 Answers
Rob Hafemeister
1,615 PointsSam,
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
1,014 Pointspython hello.py
File "<stdin>", line 1
python hello.py
^
SyntaxError: invalid syntax
Louise St. Germain
19,424 PointsLouise St. Germain
19,424 PointsHi Samuel,
Can you post what you typed into the console, so we can see where the problem might be?
Thank you!