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

Liora Blum
Liora Blum
234 Points

Console vs Workspace

Just starting in the Python track and was wondering, why were the last couple topics only covered in the console view and now onto If, Else and Elif we are back in the workspace view. I was following along but why are we switching, i guess stuff makes more sense to me when were using the workspace. Cause it stays around for a bit but is its in console, it disappears. Sorry if this is a stupid question, i'm like why we keep switching.

1 Answer

Travis Alstrand
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Travis Alstrand
Treehouse Teacher

Hey there Liora Blum ! :wave:

So basically, the Workspace area is where we can write scripts. This is how we can write code and save it to a document to be able to run over and over and later on in the future too.

The console (or terminal) is like a living zone where we can input commands to run in real time, but once it runs, it's done and "gone". Of course, if your using the Python REPL, certain things will stick around and be remembered during your session, but once you close it, it's gone.

I hope this helps clear things up a bit.

If it helps at all, you can imagine the Workspace zone as typing up documents in Word or Google Sheets or something, and the Console is like if you were to open the terminal on your computer and command your machine to do things manually.