Dec-03-2017, 07:10 PM
Hello
I am totally new to python and today learnt about lists, my question is how do i change the case of a particular element in a list
p=["mozzarella","cinderalla","salmonella"]
I want the list to be modified so cinderalla to be all caps
I tried this but not working
p[1]=p[1].upper()
I am totally new to python and today learnt about lists, my question is how do i change the case of a particular element in a list
p=["mozzarella","cinderalla","salmonella"]
I want the list to be modified so cinderalla to be all caps
I tried this but not working
p[1]=p[1].upper()