String upper() Method in Python 3
The upper() method returns a copy of the string in which all case-based characters
have been uppercased.
Syntax
str.upper()
|
Return Value
This method returns a copy of the string in which all
case-based characters have been uppercased.
Example
#!/usr/bin/python3
str =
"this is string example....wow!!!"
print
("str.upper : ",str.upper())
|
Result
str.upper
: THIS IS STRING EXAMPLE....WOW!!!
|