How can I clear/clean entire terminal screen/window of Python 3?
My aim is to:
- Print 5 lines in terminal/output screen window in Python3
- Clean the entire output screen
- Print 3 lines in the screen
How can I clear/clean entire terminal screen/window of Python 3?
My aim is to:
import os
os.system('cls') # on windows
or
os.system('clear') # on linux / os x
You can use these two for the clear screen in python 3