def factors(number):
    """Return a list of all factors of number."""
    factor_list = []
    for i in range(1, number + 1):
        if number % i == 0:
            factor_list.append(i)
    return factor_list