Sail E0 Webinar
Question
What is the output of the following code, if the time module has already been imported?def num(m): t1 = time.time() for i in range(0,m): print(i) t2 = time.time() print(str(t2-t1))     num(3)
Options:
A .  123The time taken for the execution of the code
B .  3The time taken for the execution of the code
C .  123UTC time
D .  3UTC time
Answer: Option A


The code shown above will return the numbers 1, 2, 3, followed by the time taken in the execution of the code. Hence option (a) shows the output correctly.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers