def isAbundant(x):
    """Returns whether or not the given number x is abundant.

    A number is considered to be abundant if the sum of its factors
    (aside from the number) is greater than the number itself.

    Example: 12 is abundant since 1+2+3+4+6 = 16 > 12.
    However, a number like 15, where the sum of the factors.
    is 1 + 3 + 5 = 9 is not abundant.
    """

    factors = []  # first taking an empty list

    # iterate over range from 1 to number x
    for i in range(1, x):  # we dont want to include the number itself so we took the range till x

        # check if i divides number x evenly
        if (x % i == 0):
            factors.append(i)  # add factors of the number to the list 'factors'

    summation = sum(factors)  # add the factors of a number
    if summation > x:  # check if sum of factors is equal to the number
        return True
    else:
        return False