The upper() method returns a copy of the string in which all case-based characters have been uppercased.
Following is the syntax for upper() method −
str.upper()
NA
This method returns a copy of the string in which all case-based characters have been uppercased.
The following example shows the usage of upper() method.
#!/usr/bin/python3 str = "this is string example....wow!!!" print ("str.upper : ",str.upper())
When we run above program, it produces the following result −
str.upper : THIS IS STRING EXAMPLE....WOW!!!