clear python interpreter console

import os

def cls():

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

# now, to clear the screen

cls()

Comments