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

Join The Discussion