What will be the output of the following Python code snippet?
x = 'abcd'
for i in range(len(x)):
i[x].upper()
print (x)
x = 'abcd'
for i in range(len(x)):
i[x].upper()
print (x)
A. abcd
B. ABCD
C. error
D. none of the mentioned
Answer: Option C
Join The Discussion