In Python print() and time.sleep() are only called for their side effects and pause execution for seconds? What does it mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

In Python print() and time.sleep() are only called for their side effects and pause execution for seconds? What does it mean?

some deep knowledge of python

23rd Feb 2019, 4:40 PM
Nikhil Tale
Nikhil Tale - avatar
1 Answer
+ 3
time.sleep() halts the program while print() outputs a string, char, float, int or bool to the console window. I'm sorry I don't understand the question. Time.sleep() is used for its side effects (halting a program for a certain number of seconds).
8th Jun 2019, 7:08 PM
Clueless Coder
Clueless Coder - avatar