Python 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/python
str = "this is string example....wow!!!";
print "str.upper() : ", str.upper()
The output of the above example is:
str.upper() : THIS IS STRING EXAMPLE....WOW!!!
Python Strings