1) def last_one(num):
return num % 10
2)
a = [ 5, 4, 3 , 4 , 2]
def middle(list_s):
temp = 0;
for i in range(5):
temp += list_s[i]
return temp / 5;
print(middle(a))
1) def last_one(num):
return num % 10
2)
a = [ 5, 4, 3 , 4 , 2]
def middle(list_s):
temp = 0;
for i in range(5):
temp += list_s[i]
return temp / 5;
print(middle(a))