python cls command code example
Example 1: python cls command line
import os
if running_windows == True:
os.system('CLS')
elif running_linux == True:
os.system('clear')
Example 2: cls in python
import os
clear = lambda: os.system('cls')
import os
if running_windows == True:
os.system('CLS')
elif running_linux == True:
os.system('clear')
import os
clear = lambda: os.system('cls')