What Will Be The Output Of The Following Python Code If The #847
What will be the output of the following Python code, if the time module has already been imported?</p> <pre><code class="language-python">def num(m): t1 = time.time() for i in range(0,m): print(i) t2 = time.time() print(str(t2-t1)) num(3)</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Modules - Python Datetime Module - Quiz No.2.
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)
0 1 2 The time taken for the execution of the code
2 The time taken for the execution of the code
0 1 2 UTC time
2 UTC time