num=[3,5,8,9]
sum=0
for val in num:
   sum=sum+val
   print(sum)

   #Another Progam

#num = (1,2,3,4,5,6,7,8)
#count = 0
#for item in num:
 # print (item)
  #count = count+1
   # if count == 4:
    #    break
