def capfirst(value):
 return (value and (value[0].upper() + value[1:]))

def capfirst ( value ) : return ( value and ( value [ 0 ] . upper ( ) + value [ 1 : ] ) )
capitalizes the first character of the value .