days = dict(zip(day_list, list(range(len(day_list)))))
days

def day_to_number(inp, days):
    return days[inp]
day_to_number('Sunday', days)
My function returns a list with a single integer in it, how can I make it return only the integer?