Python String casefold() Method Syntax

Syntax:  string.casefold()

Parameters: The casefold() method doesn’t take any parameters.

Return value: Returns the case folded string the string converted to lower case.

Python String casefold() Method

Python String casefold() method is used to convert string to lowercase. It is similar to the Python lower() string method, but the case removes all the case distinctions present in a string.

Similar Reads

Python String casefold() Method Syntax

Syntax:  string.casefold() Parameters: The casefold() method doesn’t take any parameters. Return value: Returns the case folded string the string converted to lower case....

Python String casefold() Method Example

Python3 string = "GEEKSFORGEEKS"   print("lowercase string: ", string.casefold())...