?
What will be the output of the following Python code?
What will be the output of the following Python code?
x = ['ab', 'cd']
for i in x:
x.append(i.upper())
print(x)
x = ['ab', 'cd']
for i in x:
x.append(i.upper())
print(x)
Join the Discussion
Login to post a comment or share your explanation.
Login