Vidyalelo
Python · Q84

Module in Python

Programming · Python · question 84

Q84

What will be the output of the following Python 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)

A.
1
2
3
The time taken for the execution of the code
Answer
B.
3
The time taken for the execution of the code
C.
1
2
3
UTC time
D.
3
UTC time

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board