Vidyalelo
Python · Q28

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 28

Q28

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

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

Answer: Option A

Solution

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