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