Python String casefold() Method
Converts all letters A through Z to lowercase.
Syntax
Python
Copy Code
string.casefold()
Example
Python
Copy Code
print('abc'.casefold()) print('ABC'.casefold()) print('1ABC'.casefold())
Output
abc abc 1abc
Converts all letters A through Z to lowercase.
string.casefold()
print('abc'.casefold()) print('ABC'.casefold()) print('1ABC'.casefold())
abc abc 1abc