Any difference between str.capitalize() and str.title()?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
str.title()
, where words contain apostrophes, the letter after the apostrophe will be capitalised.str.title()
capitalises every word of a sentence, whereasstr.capitalize()
capitalises just the first word of the entire string.