def fac(num):
    """fac: Returns an array of factors for the given number
    Args: 
    	num (int): number to list factors for
    Returns:
    	array: factors of num
    """
    output = []
    # Creates inlist for output
    for x in range(1, num + 1):
    # Loop with variable x
        if num % x == 0 and not num % x in output:
            # Tests if x goes into num and if x is already in output
            output.append(x)
    return output