Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

which line of code will pause the program for 7 seconds? import time ti…

Question

which line of code will pause the program for 7 seconds? import time time.sleep() time.pause(7) time.sleep(7) time.pause()

Explanation:

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.

Answer:

time.sleep(7)