#Write a function divisors that has one parameter positive integer. The #function finds and returns the sum of all divisors of the parameter (use #loop FOR in this function), the average of divisors and the number of #divisor. Write a program that reads a sequence of #positive integers. First negative or zero terminates the input. For each #number, program uses function divisors to prints divisors information def divisors(num): counter=0 total=0 for i in range(1, num+1): if(num%i==0): counter=counter+1 total=total+i ave=total/counter return total, ave, counter def main(): num=int(input("enter positive ")) while(num>0): total, ave, counter=divisors(num) print(total, ave, counter) num=int(input("enter positive ")) main()