Skip to content
How do I make my text in Python disappear when the user presses a key?
Profile icon
9751

How do I make my text in Python disappear when the user presses a key?

You are viewing a single comment. View All
Answered by Bookie0 [earned 5 cycles]
View Answer
Profile icon
CoolJames1610
from os import system def clear(): system("clear") clear()

OR

import os os.system("clear") # whenever you want to clear the screen

Hope this helped :)

Please mark this answer if it helped