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 (Retired) Ins & Outs Basic I/O

-bash: syntax error near unexpected token “Hi from python”’ where is the error

-bash: syntax error near unexpected token “Hi from python”’ where is the error? I used print("hello, world") from the lecture video. I am trying to work with the workspace and am getting nothing but syntax error where there should none according to what is being lectured, why? according to the video, print("hello, world") should be straight forward

Kyle Robertson
Kyle Robertson
31,600 Points

You need to startup the python environment in the terminal first by typing "python" (and pressing return). Then you'll see a >>> prompt and you can enter python code.

1 Answer

You can install python program from https://www.python.org/downloads/
it better for u