0

Help pliz . True programm ?

import time.sleep print('Hello world!') time.sleep (2) print ('goob man')

8th Oct 2019, 8:21 AM
DEb kyzmenko
DEb kyzmenko - avatar
3 ответов
+ 1
Try it out in Playground and see if it runs. What's 'goob' by the way?
8th Oct 2019, 8:29 AM
HonFu
HonFu - avatar
+ 1
import time.sleep is invalid, because sleep is not a module nor a package. I don't have a good solution for importing only sleep function from time so, that time namespace is included with it, but this is valid: from time import sleep sleep(2) I think this is a bad solution, but it works: class time: from time import sleep time.sleep(2)
8th Oct 2019, 9:32 AM
Seb TheS
Seb TheS - avatar
0
ok . I don't know
8th Oct 2019, 9:17 AM
DEb kyzmenko
DEb kyzmenko - avatar