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