2 ms·Use str.casefold() if you're using str.upper() or str.lower() for comparisons.by heavyset_go 5y agoUse str.casefold() if you're using str.upper() or str.lower() for comparisons.