Ask coding questions

← Back to all posts
How do I make my text in Python disappear when the user presses a key?
9751

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

Answered by Bookie0 [earned 5 cycles]
View Answer
Voters
9751
Comments
hotnewtop
Bookie0

you can do this:

you can also make os.system('clear') into a function for easier coding:

hope this helps! =)

CoolJames1610

UH COPYCAT xD @Bookie0

Bookie0

how? theres only that i think, and I always put it into a function so that its easier. Plus, i added comments XD @CoolJames1610

CoolJames1610

smh xD copycat :P @Bookie0

CoolJames1610

i also put it in a function @Bookie0

Bookie0

smh uneccessary pinging @CoolJames1610

CoolJames1610

smh smh @Bookie0

CoolJames1610

btw pls check my new project you dont have to @Bookie0

Bookie0

which one (also you should stop pinging, especially for the person who posted this ask)
@CoolJames1610

CoolJames1610

oh wow. @Bookie0

Bookie0
CoolJames1610

OR

Hope this helped :)

Please mark this answer if it helped

Bookie0

i think you can also use this:

or this:

hope this helps as well! =)

CoolJames1610

reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee @Bookie0

CoolJames1610

fine i give up xD idgaf about pinging :P @Bookie0 @Bookie0