Sleep Module Import on Code Playground | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

Sleep Module Import on Code Playground

I'm trying to add the sleep module so that my code counts down from the user input, but it won't delay. Is this a problem importing modules into the CP or have I coded it incorrectly? https://code.sololearn.com/cRJ5RBeFs2rH

3rd Nov 2020, 4:59 AM
Stuart McWhinney
Stuart McWhinney - avatar
1 Antwort
+ 4
SoloLearn takes your code and user input, computes the result, and then sends a final answer to you. This is why you can't have infinite loops for making something like Conways game of life in the terminal or pausing between outputs. For that I recommend an app called Dcoder
3rd Nov 2020, 5:08 AM
Maxwell Anderson
Maxwell Anderson - avatar