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 Basics Types and Branching Numeric

Why do we switch between the Python shell and the text editor in the videos?

I keep getting a bit confused as to whether i should use the console or the editor above in the work space? Are they the same thing

3 Answers

Josh Keenan
Josh Keenan
19,652 Points

Personally I have never done the switching to console, this is done to demonstrate how certain things in Python will behave with an example that doesn't really need to be saved. The console let's you run code if you write it there but it can't be saved, so it can be good to demonstrate behaviours of objects and show how functions behave in a quick manner but is not something I find myself needing to copy, but observe so I can understand better. Hope this helps

It looks as though you can use the console to test bits of code without running the whole file to see if it's worthy of being saved as part of the file. Like a roughing out book before you transfer it to neat.

good question..