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 code

Hi guys,

my question is, if you know how i can save the code i write in python. Cause everytime i'm coding a lot and after some hours when ireload the page where i'm programming, everything is gone. Please help!

Thanks!

2 Answers

Øyvind Andreassen
Øyvind Andreassen
16,840 Points

Hey erik Jones Oniga,

It is somewhat unclear where you spend your time coding? Is it in Workspaces or in the terminal of your computer? Either way, you should download an editor to your computer and save all your files locally. Personally I use Atom, but there are plenty of options out there. Write your code, save your file as .py.

I write my code in the terminal from treehouse and i can't save it..