Skip to content

Instantly share code, notes, and snippets.

@bussiere
Created January 11, 2011 07:35
Show Gist options
  • Save bussiere/774164 to your computer and use it in GitHub Desktop.
Save bussiere/774164 to your computer and use it in GitHub Desktop.
budget
budget = 80 + 80 + 80
depenses = [["raton",50],["nathalie",20],["burner",10],["baracuda",40],["boubantah",15],["electrolab",20],["sortie",15],["sport",24]]
print budget
total = 0
for depense in depenses :
print "%s %i"%(depense[0],depense[1])
total += depense[1]
print "total %i"%total
print "budget: %i"%budget
print "total des depenses sur les trois prochaines semaines : %i"%total
print "Reste %i"%(budget-total)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment