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

How do you do that Pls help

You are viewing a single comment. View All
Profile icon
Coder100

ez

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!")