okay, how about:def sum(items, start=0):first = Truefor item in items:if first:start = start + itemelse:start += itemreturn startI believe that has the same effect as my other two, but only adds the requirement that "value += item" behaves the same as "value = value + item".Chris
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/