Facebook
From Жанарбек, 4 Years ago, written in Python.
This paste is a reply to Re: Untitled from Жанарбек - go back
Embed
Viewing differences between Re: Untitled and Re: Re: Untitled
def red(spisok):
    c=0
    summ=0
    
zero(a):
    c=[]
    
for i in spisok:
        c+=1
        summ+=i
    
in  range(1,a+1,):
        if i%2!=0:
            c.append(0)
        else:
            c.append(1)    
    
return summ/c
a=[1,5] 
print(red(a))   
c   
print(zero(7))