I am wanting to compare a string called itemToReplace to one in an array but ignoring the case (if it's a capital letter or lower case).
Here is the code:
itemToReplace = input("Choose an item to replace: ")
if itemToReplace in self._inventory:
    # do something...
And when I do this, if the user types in something like "sWord" instead of "Sword", it won't work. So does anyone know how to do this?
Thanks.