Str.casefold returns a version of the string suitable for caseless comparisons.It returns not only all letters in lower case but also converts letters from other languages to lowercase.

a=’Apple’

a.casefold()

Output:’apple’

casefold in python string
Str.casefold

By SC

One thought on “Str.Casefold”

Leave a Reply

Your email address will not be published. Required fields are marked *