You can convert both strings to lowercase or uppercase (using the lower() or upper() method) before doing the comparison.