def snake_to_camel ( name ) : ret = "" . join ( x . title ( ) for x in name . split ( "_" ) ) ret = ret [ 0 ] . lower ( ) + ret [ 1 : ] return ret
how to capitalize the first letter of userinput in python
Takes a snake_field_name and returns a camelCaseFieldName
def snake_to_camel(name):
    """Takes a snake_field_name and returns a camelCaseFieldName

    Args:
        name (str): E.g. snake_field_name or SNAKE_FIELD_NAME

    Returns:
        str: camelCase converted name. E.g. capsFieldName
    """
    ret = "".join(x.title() for x in name.split("_"))
    ret = ret[0].lower() + ret[1:]
    return ret