I'm creating a simple data input program for a PPC Campaign (SEO) that uses averages.
The averages of the data when diving the total amount will change if the value is entered as == 0.
For example (1+2+3+0)/4 = Average
I'm trying to write my code when a 0 is entered the number dividing will reduce the total list amount to exclude any variables that are 0.
For example (1+2+3+0)/3 = Average.
I'm stumped on how to create this. I'll emphasis the section of code where this would take place.
Thankyou!
Here is a copy of my code:
Artlist = [Ac,Rooter,Plumbing,Electric,Leaks,Water,pspent]
average = sum(Artlist)/7