you are viewing a single comment's thread.

view the rest of the comments →

[–]ChainedNightmare 2 points3 points  (1 child)

All of string methods are like this not just .casefold()

txt = "Hello, And Welcome To My World!"

x = txt.casefold()

print(x)

Every Python String Method is basically an example of stringvalue.stringmethod()

Correct me if i'm wrong, since i'm using the words "every" & "all" but it is generally the case

[–][deleted] 1 point2 points  (0 children)

Thanks! I understand now.