def summe(a): s = 0 for element in a: s+=element return s a = list(range(1,11)) print(a) print(summe(a))