How to change a string into uppercase

Use str.upper():

>>> s="sdsd"
>>> s.upper()
'SDSD'

See String Methods.

Leave a Comment