Question: what is the difference between lower and casefold in python?
Answer: casefold() vs lower() Casefolding is similar to lowercasing but more aggressive because it is intended to remove all case distinctions in a string. For example, the German lowercase letter 'ß' is equivalent to 'ss'. Since it is already lowercase, lower() would do nothing to 'ß', but casefold() converts it to 'ss'.