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