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

Ben Barber-Hays
Ben Barber-Hays
190 Points

Craig keeps clearing his console with what looks like a key stroke but I can't recall how to do that.

How do I clear the console?

6 Answers

Ctrl+L clears the screen on Mac, Windows, and Linux.

i hit ctrl + shift + D & then type clear, and then python :o

Easier to hit Ctrl+L :)

Alternatively typing "clear" does the trick. At least on Mac. Its been a while since I've been on CMD or Powershell.

You can type clear (or cls on Windows), but you must first exit Python, type clear, and re-enter Python, which is a hassle. It's easier to push Ctrl+L.

:+1:

Ben Barber-Hays
Ben Barber-Hays
190 Points

Thanks everyone. Haven't been able to get on here for a week so I apologise for the delayed gratitude.