Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!panix!gordon From: John Gordon Newsgroups: comp.lang.python Subject: Re: Help Date: Mon, 1 Apr 2013 22:12:43 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 15 Message-ID: References: NNTP-Posting-Host: panix2.panix.com X-Trace: reader1.panix.com 1364854363 18213 166.84.1.2 (1 Apr 2013 22:12:43 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Mon, 1 Apr 2013 22:12:43 +0000 (UTC) User-Agent: nn/6.7.3 Xref: csiph.com comp.lang.python:42513 In khaosyt@gmail.com writes: > If I wanted to get the sum of some numbers (for example: 1 + 2 + 3 + 4 > + 5 = 15) from the attached program what do I do? Keep in mind that the > print statement prints the integers individually. It's not clear what you're asking for. The attached program doesn't (appear to) work with sums at all; why would you want to use it? Writing a new program from scratch would seem to be a better choice. -- John Gordon A is for Amy, who fell down the stairs gordon@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies"