# Remember we can easily do this with sum() function
# But the challenge is not to use that, and use for loop
total = 0
lst = [9, 41, 12, 3, 74, 15]
for num in lst:
total = total + num # We can write this as (total += num)
print(num, total) # You can skip this print statement if you want
print('Total of all the numbers in the list:', total)
# This is the easy way
print(sum(lst))
sum of list element
def int_list(grades): #list is passed to the function
summ = 0
for n in grades:
summ += n
print summ