I am using Python 3.6. How do I clear the python shell, something equivalent to Cls command in DOS? I read on some sites that ctrl + L should do the job, but, it doesn't seem to work for me.
Asked
Active
Viewed 874 times
1 Answers
1
If you're using the REPL environment from the command-line (e.g. running python on a dos command-line or within a posix terminal/tty), there's no mechanism that the REPL provides to clear the screen.
So for example, you may run:
c:\> python
>>>
The above has no way to clear the command-line.
But may I suggest ipython?
It's a better, more full-featured python REPL interface for command-line execution and also includes a way to clear the screen.

Brian Bruggeman
- 5,008
- 2
- 36
- 55