Vidyalelo
Python · Q42

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 42

Q42

What will be the output of the following Python code snippet? for i in 'abcd'[::-1]: print (i)

A.
a b c d
B.
d c b a
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