You are here : python_2stringstringcapitalize

string.capitalize() - string

             

It returns a copy of the string with only its first character capitalized.


  • NA


Syntax


str.capitalize()


Example


#!/usr/bin/python

str = "this is string example....wow!!!";

print "str.capitalize() : ", str.capitalize()


Output / Return Value

string


str.capitalize() : This is string example....wow!!!


Limitations


Alternatives / See Also


Reference