Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help really bad ;(
#1
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 :)
Reply
#2
time.sleep(5)
But I never understood why every other newbie wants to delay the program execution with unnecessary delays like this
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
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!')
Reply
#4
(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?
Reply
#5
(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
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#6
For dramatic effect.

I see you shiver with antici.....................................................pation
Reply
#7
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)
Reply
#8
(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
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020