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 start help.

Hello, i downloaded python today but when i try to open it with a file it only appears for 1 second then disappears. Anyone know how to fix this problem?

2 Answers

Sounds like youre running a python file by double clicking on it. You should run the file with a terminal program like Git Bash.

This link might help you https://learnpythonthehardway.org/book/ex0.html

Let me know if this helps here

Hey adam. thanks for the reply. I started doing programming/software/development or whatever you call it yesterday. So i am pretty new to this. If you have the time please can you tell me what a terminal program is? does that mean i cant just run python from double clicking on a saved notepad++ file? with .py

A terminal can run python code among other things. It's also called the console or command line.

There's a course here that covers the basics of it: https://teamtreehouse.com/library/console-foundations

In the very beginning it might be easier to write code and run files via IDLE, which should have been installed when you installed python. Watch this video https://www.youtube.com/watch?v=da8YU52iPrE