def METHOD_NAME(zip: str):
    list_of_dicts_of_south_carolina_zips = zipcodes.filter_by(state="SC")
    list_of_south_carolina_zips = [
        d["zip_code"] for d in list_of_dicts_of_south_carolina_zips
    ]
    if len(zip) > 10:
        return False
    elif type(zip) != str:  # noqa: E721
        return False
    elif zip in list_of_south_carolina_zips:
        return True
    else:
        return False