Python - String Method - casefold() Tutorial
This method is similar to lower(), but it converts more character to lowercase or case fold string aggressively than the actual lower() method. It does not modify the original string. For example, in German lowercase ß is equivalent to ss.
str1 = "Preß - Media"
print(str1.casefold())
print(str1)
Output-
press - media
Preß - Media
In the above program, ß is german lower case, using the case fold method it is aggressively changed to lowercase i.e ss.