String Methods
upper()
Return an uppercase copy of text.
str.upper()
str.upper() returns a copy of the string with all cased characters converted to uppercase.
Returns
A new string with cased characters converted to uppercase.
Try it
Run it and change it
text = "HeLLo" print(text.upper())
Worth knowing
- Case conversions: Non-alphabetical characters (numbers, punctuation) are unaffected.