function to capitalize first letter in python and lowercase rest code example
Example 1: python capitalize first letter of string without changing the rest
string[0].upper() + string[1:]
Example 2: python lowercase first letter
def decapitalize(str):
return str[:1].lower() + str[1:]
print( decapitalize('Hello') ) # hello