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 Input and Coding Style

Why should I write the python command in the REPL to get access to input function in the shell

When I write like my input command in the REPL it's give me, something like bash syntax error token ', but when I write python, here I can enter my commands and it's working, what I want to know it's why it's given me that?

1 Answer

Steven Parker
Steven Parker
229,732 Points

It sounds like you might not have been running the Python system when you entered your command. You need to type "python" first in the console before giving any Python commands. You'll know if the system is ready for Python commands when you see these symbols on the line:

>>>

If that's not the issue, please show exactly what you are typing, and exactly what message you get back.

Thank you, so much, that's helped me, yeah you're right!