The capitalize() method in Python converts the first character of a string to uppercase and makes all other characters lowercase. It ensures the string starts with a capital letter while the rest of the text remains in lowercase.
What does the capitalize() method do in Python for strings?
RELATED ARTICLES
0 Comments
Oldest