Ask coding questions

← Back to all posts
Is there a way to have a time command within a wait command?
MATTHEWBECHTEL

I am using the following within this repl: https://repl.it/@MATTHEWBECHTEL/TIMED-TEXT-EXAMPLE
I want it to say a sentence, then wait like 3 seconds.

Answered by PYer [earned 5 cycles]
View Answer
Voters
PYer
MATTHEWBECHTEL
Comments
hotnewtop
PYer

Just use time.sleep() again.

MATTHEWBECHTEL

.... brain melt. @PYer

MATTHEWBECHTEL

Can I have like a spam email or something? I need you to help me xD. @PYer

PYer

@MATTHEWBECHTEL With what?

MATTHEWBECHTEL

Indentingggg. @PYer

PYer

@MATTHEWBECHTEL What repl?

JustARatherRidi

Sure, you mean something like this?
https://repl.it/@JustARatherRidi/TIMED-TEXT-EXAMPLE

MATTHEWBECHTEL

Um....yeah. I didn’t realized how easy it was to do that xD. Thanks. @JustARatherRidi

MATTHEWBECHTEL

@PYer OK. I fixed some errors and it works sort of better now. Thanks for the advice. There’s another problem now. Btw before I set line 132 to while False: and not while True:
https://storage.googleapis.com/replit/images/1559227918231_44897000e991463af154a7512279ef9a.pn

As soon as you reach the corridor room and type 2, it prints line 87 through 89. I want it to print line 83.

PYer

@MATTHEWBECHTEL then remove the lines you dont want it to print

MATTHEWBECHTEL

Yeah but I'm not sure how to make it so if the user chooses that then goes straight to that line.

MATTHEWBECHTEL
MATTHEWBECHTEL

PYER answered first by 1 minute gg.

JustARatherRidi
MATTHEWBECHTEL

Please, let there be.