def expand_number(whole_string):
    """
    input (str): "1,2,3,6-10"
    output (list): [1,2,3,6,7,8,9,10]
    """
    whole_string = whole_string.replace(" ","").split(",")
    new_numbers = []
    for number in whole_string:
        if "-" in number:
            start, end = number.split("-")
            for n in range(int(start),int(end)):
                new_numbers.append(n)
        else:
            new_numbers.append(int(number))
    return new_numbers