Latest web development tutorials

Python upper () method

Python strings Python strings


description

Python upper () method in a string lowercase to uppercase letters.

grammar

upper () method syntax:

str.upper()

parameter

  • NA.

return value

Returned lowercase to uppercase letter string.

Examples

The following example shows the upper () function to use:

#!/usr/bin/python

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

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

Examples of the above output results are as follows:

str.upper() :  THIS IS STRING EXAMPLE....WOW!!!

Python strings Python strings