I have use 'sleep.time(5)' in most of my program but the following error is throwing me for a loss.

import time
Traceback (most recent call last):
File "/home/ken/Python2/Blood Glucose/BloodGlucose04ReadingTimed.py", line 63, in <module>
    time.sleep(2)
AttributeError: 'str' object has no attribute 'sleep'

Using the following is okay:

import time
print "Now"
time.sleep(2)
print "Later"


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to