Python String casefold() Method
>My zig >My zig>My zig
Example
Make the string lower case:
txt = "Hello, And Welcome To My World!"
x = txt.casefold()
print(x)
Try it Yourself »
>My zig
Definition and Usage
>My zigThe casefold()
method returns a string where
all the characters are lower case.
This method is similar to the
lower()
method, but the
casefold()
method is
stronger, more aggressive, meaning that it will convert more characters into
lower case, and will find more matches when comparing two strings and both are
converted using the casefold()
method.
>My zig
Syntax
>My zig
string.casefold()
>My zig
Parameter Values
No parameters
>My zig>My zig >My zig