0
I want to create an executable that opens a cmd and after that, enter a clear() function automatically so that you can clear the screen whenever necessary just by typing clear(). Fez:
import os
os.system('python')
So it opens python in cmd, but after that I can no longer run any lines running this script.
How can I write the clear() function inside this python terminal that just opened using this same script, so that when I run the script, the terminal opens configured with the clear function and ready for quick use of python?
def clear():
os.system('cls')
It was perfect! Thank you very much
– Yone