# capitalize() first letter of # string. name = "geeks for geeks" print(name.capitalize()) # demonstration of individual words # capitalization to generate camel case name1 = "geeks" name2 = "for" name3 = "geeks" print(name1.capitalize() + name2
Answers
Answered by
1
Answer:
In Python, the capitalize() method converts the first character of a string to capital (uppercase) letter. If the string has its first character as capital, then it returns the original string.
Performing the . upper() method on a string converts all of the characters to uppercase, whereas the lower() method converts all of the characters to lowercase. >>>
Similar questions