Open this example in the interactive library
Source code
print('Straße'.casefold() == 'STRASSE'.casefold())Sample output
True

Compare Unicode case-insensitively. A self-contained example using the Python standard library.
Open this example in the interactive library
print('Straße'.casefold() == 'STRASSE'.casefold())True