- The capitalize() method of python str class returns a copy of the python string object with the following modifications done:
- The first character of the string is capitalized
- All other characters of the string except the first character are made lower case.
# String with lower case and upper case letters
aliceQuote = "Curiouser And Curiouser!";
# string with all lower case letters
aliceQuote = "begin at the beginning";
Curiouser and curiouser!
Begin at the beginning