Home / MCQ Bank / Computer
Computer Module In Python

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)

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • 1 2 3 The time taken for the execution of the code

Related Computer Questions

Composition is also a type of ______ relationship. What is the output of the following code: cout << (10 % 3); in C++? Which of the following should be true of the object thrown by a thrown statement? In the directive, #pragma pack(n), which of the following is not a valid value of n? What is the height of a binary tree with a single node?