You are here : python_2stringstringupper

string.upper() - string

             

The method upper() returns a copy of the string in which all case-based characters have been uppercased.


  • NA


Syntax

str.upper()


Example

#!/usr/bin/python

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

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


Output / Return Value

When we run above program, it produces following result −


THIS IS STRING EXAMPLE....WOW!!!


Limitations


Alternatives / See Also


Reference