Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python Python Basics Meet Python Variables

hello.py is not saving correctly. I've tried using ctrl+s and manually saving through the file tab.

For some reason, my Workstation is not saving any of my .py files. For example, after I save my file, I go to run it as you normally would. My output says "Hello, World", as if I had never saved it.

I don't know if you are using the treehouse IDE or you are using an IDE installed on your local machine. For treehouse IDE, you don't need to save any file, just write your code and run directly on the web IDE. But if you have installed an IDE like sublimetext3, or atom or vscode on your computer, then open your IDE -> create a new file, -> ctr + s -> (your file name).py and save to your choosing file location. Either on the desktop or any location that you choose.

Next, if you use Linux OS or MAC OS like me, open your Terminal and change directory to the location where you saved your python file, e.g desktop, then type python3 filename.py and hit enter or return key. Your program should run fine