def get_factors_(number, printed=False):
    """Get the factors of a number."""
    factors = []
    for x in range(1, number+1): # For each number from 1 to the given number.
        if number % x == 0: # If number divided by x has a remainder of 0.
            factors.append(x) # Then it is a factor of the given number.
    if printed:
        print(factors)
    else:
        return factors