clear python interpreter console

import os

def cls():

os.system('cls' if os.name=='nt' else 'clear')

# now, to clear the screen

cls()

You might also like...

What do you think?