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 String Methods

Miles Welch
Miles Welch
188 Points

Why is there such a usage of console entry versus code entry? I can save code... I cannot save console entry

Why is the coding taking place in the console area and not in the code line area? The point of this is to learn to write in code... and not to input single line commands.

1 Answer

Travis Alstrand
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Travis Alstrand
Treehouse Project Reviewer

I believe Craig was using the REPL to demonstrate how to use new concepts and methods, but wasn't exactly writing code needed or wanted for the project being made throughout the course. Luckily, the code he's writing in the REPL is valid Python, not terminal commands, but you're right, those snippets won't be saved.

You're more than welcome to right click in the left panel of any open workspace, create a New File, and actually write out the code in there to save it and reference later if you'd like. But usually when he teaches something in the REPL, it gets implemented in some fashion in the actual project directly afterwards.