Method Name:
upper
Method Signature:
upper()
Return Value:
A string of all uppercase characters.
Method Overview:
- For a given string of characters the method uppercase() returns a string whose characters are all in uppercase.
Example:
# Example Python program that converts strings # Lowercase to uppercase # Titlecase to uppercase # Mixed to uppercase |
Output:
Lowercase:warning Uppercase:WARNING Titlecase:New York City Uppercase:NEW YORK CITY Mixed case:Lakes of the world Uppercase:LAKES OF THE WORLD |