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