RosettaCodeData/Task/Sleep/Python/sleep.py

7 lines
146 B
Python
Raw Permalink Normal View History

2013-04-11 01:07:29 -07:00
import time
seconds = float(raw_input())
print "Sleeping..."
time.sleep(seconds) # number is in seconds ... but accepts fractions
print "Awake!"