python logo

capitalize in python


Python hosting: Host, run, and code Python in the cloud!

The method capitalize returns a new string with first letter capitalized.

Syntax


The format is:


str.capitalize()




Parameters

None.

Example


str = "the capitalize method returns the string with first letter capitalized."
print( str.capitalize() )

Result:


The capitalize method returns the string with first letter capitalized.

BackNext





Leave a Reply: