turn caps lock on and off python code example Example: python string caps lock >>> s = 'sdsd' >>> s.upper() 'SDSD'