Latest web development tutorials

Python3 upper () method

Python3 string Python3 string


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/python3

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

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

Examples of the above output results are as follows:

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

Python3 string Python3 string