Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created June 28, 2020 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/0cd19a488cb46bdf8c1eac4f499e4226 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/0cd19a488cb46bdf8c1eac4f499e4226 to your computer and use it in GitHub Desktop.
#casefold- converts all character to lower case
s1="Example Of String Methods"
print (s1.casefold()) #Output:example of string methods
s2="ß-Beta"
#ß-lowercase is equivalent to ss. casefold converts it to ss. But lower doesn't do that.
print (s2.casefold()) #Output: ss-beta
print (s2.lower())#Output: ß-beta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment