Vidyalelo
Python · Q18

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 18

Q18

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

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

Answer: Option A

Solution

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