String in PythonString in Python

0 Comments

Str.capitalize() returns a copy of the string containing first character capitalized and the rest in lowercased x = "hello" x.capitalize()   Output: Hello Str.lower() returns a string in which all characters are in lowercased x = "HELLO" x.lower() Output: hello Str.upper() returns a string in which all characters are in uppercased x=