how to clear the command prompt in python code example
Example 1: console clear python
import os
os.system('clear')
Example 2: python interpreter clear screen
import os
# Windows
os.system('cls')
# Linux
os.system('clear')
import os
os.system('clear')
import os
# Windows
os.system('cls')
# Linux
os.system('clear')