1. Home
  2. Data Science
  3. Python
  4. What is the output of print('STRASSE'.casefold() ==…

Added 25 Nov 2026

What is the output of print('STRASSE'.casefold() == 'strasse') in Python?

print('STRASSE'.casefold() == 'strasse')
  1. False
  2. None
  3. True Correct answer
  4. Error

Correct answer

C. True

6 views

MCQSEXAM

Explanation

casefold() is a stronger lowercase for case-insensitive comparison.

Reference

Asked in: Python Interview Strings

https://docs.python.org/3/library/stdtypes.html#string-methods

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs