Python3 upper() Method
Description
The Python upper() method converts lowercase letters in a string to uppercase.
Syntax
Syntax of the upper() method:
str.upper()
Parameters
- NA。
Return Value
Returns the string with lowercase letters converted to uppercase.
Example
The following example shows how to use the upper() function:
#!/usr/bin/python3
str = "this is string example from runoob....wow!!!";
print ("str.upper() : ", str.upper())
The output of the above example is:
str.upper() : THIS IS STRING EXAMPLE FROM RUNOOB....WOW!!!
Python3 Strings