
December 13th, 2012, 07:14 PM
|
|
Registered User
|
|
Join Date: Dec 2012
Posts: 3
Time spent in forums: 16 m 23 sec
Reputation Power: 0
|
|
|
Sleep function
Hello, i'm a middle school student making a python program for a class.
Code:
import time
print("Rock, Paper, and Scissors in Python")
print("Made by ")
def wait(secs):
time.sleep(secs)
wait(3)
print("Type in your choice: Rock, Paper or Scissors")
I am using the sleep function, but it sleeps at the beginning before the first print function happens, and then prints everything else at the same time. I am using wing ide. Any help?
Thanks
|