how to print a string in uppercase python code example Example: python string caps lock >>> s = 'sdsd' >>> s.upper() 'SDSD'