Python String upper() Syntax
string.upper()
Parameters
- The upper() method doesn’t take any parameters.
Returns
returns an uppercase string of the given string.
Python String upper() Function
Python String upper() method converts all lowercase characters in a string into uppercase characters and returns it.
Example:
Python3
original_text = "lisT Upper" upper_text = original_text.upper() print (upper_text) |
Output
LIST UPPER