Q. What will be the output of the following Python code snippet?
Code:
x = 'abcd'
for i in range(len(x)):
i[x].upper()
print (x)
β
Correct Answer: (A)
error
x = 'abcd'
for i in range(len(x)):
i[x].upper()
print (x)
You must be Logged in to update hint/solution