Python String casefold() Method
Example
Set String to Lowercase:
txt = "Hello, And Welcome To My World!" x = txt.casefold() print(x)
Definition and Usage
The casefold() method returns a string with all characters in lowercase.
This method is similar to the Lower() method, but the casefold() method is more powerful and aggressive, which means it converts more characters to lowercase and finds more matches when comparing two strings converted with the casefold() method.
Syntax
string.casefold()
Parameter Value
No Parameters