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 trialKristian Vrgoc
3,046 PointsPython Shell: File "<stdin>", line 1 ?
Hey Guys,
I tipped in the code as taught, but I got an error: File "<stdin>", line 1. This already happened in another tasks, it seems not to be a coding mistake.
Thanks in Advance
Kris
3 Answers
Kristian Vrgoc
3,046 PointsProblem fixed thanks !!!
Jonathan Grieve
Treehouse Moderator 91,253 PointsI think this happens when there's an issue with the interpreter accepting input in the python shell.
Are you trying to run a script from within Python Shell?
If you run a command "python filename.py" from within the Python Shell this will not work.
Try typing .exit() to get back to the normal command line and then rerun your script.
Kristian Vrgoc
3,046 PointsIn the Console I tipped in >>>exit() and got out of the Python Shell. Its still not working.