How to downcase the first character of a string?
s = "Bobby tables"
s = s[0].lower() + s[1:]
One-liner which handles empty strings and None
:
func = lambda s: s[:1].lower() + s[1:] if s else ''
>>> func(None)
>>> ''
>>> func('')
>>> ''
>>> func('MARTINEAU')
>>> 'mARTINEAU'