Vidyalelo
Python · Q47

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 47

Q47

What will be the output of the following Python code snippet? for i in [1, 2, 3, 4][::-1]: print (i)

A.
1 2 3 4
B.
4 3 2 1
Answer
C.
error
D.
none of the mentioned

Answer: Option B

Solution

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