QUESTION IMAGE
Question
which line of code will pause the program for 7 seconds? import time time.sleep() time.pause(7) time.sleep(7) time.pause()
Brief Explanations
In Python, after importing the time module, the sleep() function is used to pause the execution of the program. The argument passed to sleep() indicates the number of seconds to pause. So to pause for 7 seconds, we use time.sleep(7). There is no pause() function in the time module in Python.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
time.sleep(7)