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 trialJoe Hollier
383 PointsWhat is the command to drop of out of python?
how do I get back to a clear treehouse:~/workspace:$
once the console is full of lines? Forgot the command. TY!
7 Answers
Alexander Davison
65,469 PointsIf you want to "drop out" of Python, you can either push Ctrl+D, type quit()
, or type exit()
. Though sometimes it's easier to push Ctrl+L if you simply want to clear the screen.
Steven Parker
231,248 PointsThe easiest way is to call the "quit()
" function.
Then in the console, you can use the "clear
" command to remove the old commands from the screen.
gsav
3,800 PointsYou can:
- Enter "quit()" as mentioned above
- Mac: Cntrl+D
- Windows: Cntrl+Z then Enter
Joe Hollier
383 PointsThank you everyone. I appreciate the help from the community!
STEVEN PENA
13,928 Pointscntrl+D for both windows and mac
Rohan Sheelvant
215 Pointsuse Ctrl+D or quit()
Luke McGhee
1,870 PointsCtrl+D for Windows. Command+D for Mac. Or for both you can just type quit() or exit()
amyyxt
2,227 PointsIt's ctrl+D for both Windows and Macs, actually!
Laura Lappebn
388 PointsLaura Lappebn
388 PointsThank you! It worked!