Question: Is there a way to do this:

```
$.post( "functions.php", { name: "John", time: "2pm" })
    .done(function( data ) {
    alert( "Data Loaded: " + data );
});

```

But to send your data to a specific function at "functions.php"?

The idea is that functions.php would have a number of functions, but you would want this specific post request to interact with a specific function.

Answer: 
I'm not an expert in python, but I'd recommend a for loop, so:

```
 # From 1 to 10

 n = 0
 for i in range(10):
         n = n + 1
         abundant(n)

```

Hope this helps!
No need to return the abn list as it is declared as global

```
abn=[]  #to store abundant nos.
def factors(n):
    s=1 
    if n==1:
        return 1
    if n%2==0:
        step=1
    else:
        step=2

    r=int(n**.5)

    if(r**2==n):
        r-=1
        s+=r+1
        # s-sum 
    f=2
    #print("n= ",n)
    while(f<=r):
        if n%f==0:
            s+=f+n//f
            #print(f,n//f)
        if(s>n):
            abn.append(n)   #if sum is going to be greater than n iam storing them in abn list
            return n
        f+=step    
    else:
        return 0

n=int(input())
for i in range(12,n+1):  #since 12 is the first abn. no the range starts from 12
    factors(i)

abn.sort()
print("abn. nos list: ",abn)

```