Vidyalelo
Python · Q44

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 44

Q44

What will be the output of the following Python code? for i in range(int(2.0)): print(i)

A.
0.0 1.0
B.
0 1
Answer
C.
error
D.
none of the mentioned

Answer: Option B

Solution

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