What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
i.upper()
print (x)
x = 'abcd'
for i in range(len(x)):
i.upper()
print (x)
A. a b c d
B. 0 1 2 3
C. error
D. none of the mentioned
Answer: Option C
Join The Discussion