Vidyalelo
Python · Q2

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 2

Q2

What is the output of the following code snippet:for i in range(2, 6): print(i)

A.
2
3
4
5
Answer
B.
1
3
4
6
C.
3
4
5
6
D.
1
2
3
4

Answer: Option A

Solution

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