def set_weight(courier_type):
    """returns maximal weight for courier (based on his courier_type)"""
    DATA = {"foot": (2, 10), "bike": (5, 15), "car": (9, 50)}
    weight_max = DATA[courier_type][1]
    return weight_max