# Eridson Trinidad
# March 12, 2013
# Session 9310
# Lab 4

“”” I am now making my statements for cookies, which is what the cumulative is.
it makes coding simpler to me by using things that I like, for it helps me
think more outside the box to reach my goal because I like cookies.”””
def cookie(x):
#since we want to have everything in brackets by the end, I am making a variable
#that contains empty brackets, to plug in our answers later
result = []
#Total is the main thing. it’ll take the previus number, and add it by
#the number that we are giving it, or ‘x’
total = 0
for i in x:
#This is where we get out answers. the append command makes it
#add the new number to the brackets, which displays all of the answers.
#the += takes the previus number and adds it by the new value
total += i
return result
#This commands make the answers go back to the beginning, which is X
x = [1, 2, 3, 4, 5, 6]