What is the output of print('STRASSE'.casefold() == 'strasse') in Python?
print('STRASSE'.casefold() == 'strasse')
Correct answer
C. True
6 views
C. True
6 views
casefold() is a stronger lowercase for case-insensitive comparison.
Asked in: Python Interview Strings
https://docs.python.org/3/library/stdtypes.html#string-methodsNot sure why the answer is C? Ask here and get an explanation.