Time.sleep( t ) | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 4

Time.sleep( t )

how should time.sleep be used? i tried using it in this code but i only get timelimit exceeded https://code.sololearn.com/chU4KCZFZ9v5/?ref=app

27th Aug 2018, 10:45 AM
Mbrustler
Mbrustler - avatar
2 Réponses
+ 5
time.sleep() works in seconds, and the sololearn compiler's time limit for execution is around 5 seconds. so by doing time.sleep(5) on SL, your program will time out
27th Aug 2018, 10:50 AM
hinanawi
hinanawi - avatar
+ 1
thank you very much :D
27th Aug 2018, 10:53 AM
Mbrustler
Mbrustler - avatar