python clear output cmd code example
Example 1: clear window python console
import os
clear = lambda: os.system('cls')
Example 2: python cls statement using os module
import os
os.system('cls') # on windows
import os
clear = lambda: os.system('cls')
import os
os.system('cls') # on windows