Definition
The capitalize() method capitalizes the first character of the string.
Syntax
string.capitalize()
Parameters
No Parameters.
Examples:
myString = "hello world."
result = myString.capitalize()
print (result)
The capitalize() method capitalizes the first character of the string.
string.capitalize()
No Parameters.
myString = "hello world."
result = myString.capitalize()
print (result)