Hi I am new to coding so need your help.Any idea why append in loop is not working.?
code:x = ['ab', 'cd']
for i in x:
x.append(i.upper())
print(x)
Expected output:
['ab', 'cd', 'AB', 'CD']
but not getting any output, and compiler runs out of ram
Thanks