I saw this code on YouTube. The code should turn all lower case strings (ab ,cd) into upper case string but when I tried this code the output was the same as the array without change. I want know what is going on behind the scenes.
x = ['ab', 'cd']
for i in x:
i.upper()
print(i)