I want to change an array from lower case to uppercase and print the result in Python.
In the following x will continue to print in lowercase.
x = ['ab', 'cd']
for i in x:
i.upper()
print(x)
How do you write the code so x = ['AB', 'CD]
when you print for x?