Skip to content
How do you clear text you print in python
Profile icon

How do you do that Pls help

You are viewing a single comment. View All
Profile icon


first, define this little function:

import os def clear(): os.system("clear")

so now, all you have to do is call the function if you want to clear it, for example:

import time print("Hello,") time.sleep(1) clear() print("World!")