>>> def upperFirst(s): ... return s[0].upper() + s[1:] ... >>> upperFirst('hello world') 'Hello world'