Write the syntax for capitalize( ) method.
Answers
Answered by
0
Answer:
IN PYTHON , the capitalise ()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 .
SYNTAX : string _ name
Answered by
0
The syntax for capitalize method is capitalize (string name).
Explanation:
- The capitalize method is used to convert the first letter of the string to a capital form.
- If the first letter is already in capital, then the original string will be returned.
- The function gets the string name from the user and perform the capitalize option on the first letter of the name.
- Therefore as per the rule of English, the first letter of a word can be turned to capital.
To know more:
1) How to capitalize first letter in python 1?
https://brainly.in/question/12860992.
2) Write a python program to capitalize the frst and last letter of each word in a string
https://brainly.in/question/10428765
Similar questions