Vidyalelo
Python · Q8

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 8

Q8

What will be the output of the following code:for i in range(5, 0, -1): print(i)

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

Answer: Option B

Solution

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