Python Forum

Full Version: Need help really bad ;(
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys!,
so im making a little thing like with imput, else if-else and more to ask somthing.
but i was wondering, could i make like somthing that makes the messags come in thier own time
like
Welcome to Mian's Test!
(after 5 seconds)
Loading...
(after 5 secconds) <----- How do i make this like so it waits
(space)
(space)
(space)
Loading...

Hi!

Thanks for the help :)
time.sleep(5)
But I never understood why every other newbie wants to delay the program execution with unnecessary delays like this
You can use the time module for this. In the example below, "World!" appears on the screen 5 seconds after "Hello" does.

import time

print('Hello')
time.sleep(5)
print('World!')
(May-26-2020, 12:12 PM)buran Wrote: [ -> ]time.sleep(5)
But I never understood why every other newbie wants to delay the program execution with unnecessary delays like this

because he/she might want to check output and then move to next line?
(May-26-2020, 08:39 PM)pythonlearner1 Wrote: [ -> ]because he/she might want to check output and then move to next line?
please... be serious
For dramatic effect.

I see you shiver with antici.....................................................pation
I was going to join the conversation in this thread but it will have to wait till after I've had a sleep Confused
Yoriz.sleep(5)
(May-26-2020, 09:11 PM)Yoriz Wrote: [ -> ]I was going to join the conversation in this thread but it will have to wait till after I've had a sleep Confused
Yoriz.sleep(5)

racist