python first letter to upper case code example Example: python capitalize first letter of string without changing the rest string[0].upper() + string[1:]