How to clean the screen of the Windows Python interpreter?

0

I'm starting to study Python (version 3) by doing several syntax tests using the interpreter for Windows. However, I would like to wipe from the screen the commands I have already executed, as the scroll bar grows. I tried typing clear , clean , CTRL+L , but none of that worked.

    
asked by anonymous 27.04.2017 / 19:33

1 answer

2

Based on these sources ( source1 , font2 ), where windows can do:

import os
os.system('cls')

If it were linux it would be:

import os
os.system('clear')

I did not test, but I believe it works.

    
27.04.2017 / 20:01