Vidyalelo
Python · Q70

Python Loops and Conditionals: MCQs for Exam Readiness

Programming · Python · question 70

Q70

What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): x = 'a' print(x)

A.
a
B.
abcd abcd abcd
C.
a a a a
Answer
D.
none of the mentioned

Answer: Option C

Solution

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