Vidyalelo
Python · Q20

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 20

Q20

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

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

Answer: Option A

Solution

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