how to clear console screen after each input in python code example
Example 1: how to clear console python
import os
os.system('cls' if os.name == 'nt' else 'clear')
Example 2: python cls statement using os module
import os
os.system('cls') # on windows