About Lesson
capitalize():-
The capitalize() method returns a string where the first character is upper case, and the rest is lower case.
Syntax:- string.capitalize()
txt = “ak it solution!” x = txt.capitalize() print (x) # Ak it solution! |
txt = “28 is my age.” x = txt.capitalize() print (x) # 28 is my age. |