Displaying 1 result from an estimated 1 matches for "hoursday1".
Did you mean:
hoursday7
2006 Apr 24
7
Can you improve on this code?
...t;] = totals["Wednesday"] =
totals["Thursday"] = totals["Friday"] = totals["Saturday"] =
totals["Sunday"] = totals["Totals"]=0 #initialise all to zero
31:
32: for item in items
33: totals["Monday"]+=item.hoursday1
34: totals["Tuesday"]+=item.hoursday2
35: totals["Wednesday"]+=item.hoursday3
36: totals["Thursday"]+=item.hoursday4
37: totals["Friday"]+=item.hoursday5
38: totals["Saturday"]+=item.hoursday6
39: totals["Sun...