Help

2013-04-02 Thread khaosyt
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. integer = 0 denom = 10 again = "y" #sentinel: while again == "y" or again == "Y": integer = in

Help

2013-04-02 Thread khaosyt
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. integer = 0 denom = 10 again = "y" #sentinel: while again == "y" or again == "Y": integer = input("

Re: Help

2013-04-01 Thread khaosyt
On Monday, April 1, 2013 8:00:30 PM UTC-4, Steven D'Aprano wrote: > On Mon, 01 Apr 2013 14:44:45 -0700, khaosyt wrote: > > > > > 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? Ke

Re: Help

2013-04-01 Thread khaosyt
On Monday, April 1, 2013 7:47:51 PM UTC-4, Roy Smith wrote: > In article <515a1b7c$0$29967$c3e8da3$54964...@news.astraweb.com>, > > Steven D'Aprano wrote: > > > > > On Mon, 01 Apr 2013 23:09:04 +0100, Mark Lawrence wrote: > > > > > > > On 01/04/2013 22:42, khao...@gmail.com wrote: > > > >

Re: Help

2013-04-01 Thread khaosyt
On Monday, April 1, 2013 6:33:08 PM UTC-4, John Gordon wrote: > In <118e161a-4981-4696-8bdb-780bf8248...@googlegroups.com> khao...@gmail.com > writes: > > > > > > 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

Re: Help

2013-04-01 Thread khaosyt
On Monday, April 1, 2013 6:12:43 PM UTC-4, John Gordon wrote: > In khao...@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 integ

Re: Help

2013-04-01 Thread khaosyt
On Monday, April 1, 2013 6:09:04 PM UTC-4, Mark Lawrence wrote: > On 01/04/2013 22:42, khao...@gmail.com wrote: > > > Self-bump > > > > > > > It's considered polite to wait for at least 24 hours before bumping a > > question. You might have got more answers if you'd given a decent > > sub

Re: Help

2013-04-01 Thread khaosyt
Self-bump -- http://mail.python.org/mailman/listinfo/python-list

Re: Help

2013-04-01 Thread khaosyt
Self-bump -- http://mail.python.org/mailman/listinfo/python-list

Re: Help please

2013-03-31 Thread khaosyt
On Monday, April 1, 2013 1:24:52 AM UTC-4, Chris Angelico wrote: > On Mon, Apr 1, 2013 at 4:15 PM, wrote: > > > integer = input("Enter a positive integer: ") > > > again = raw_input("Again? (Y/N): ") > > > > Okay, the first thing I'm going to say is: Don't use input() in Python > >

Help please

2013-03-31 Thread khaosyt
I want to add up the integers of this code in one line. For example, if I had the code integer = 0 denom = 10 again = "y" #sentinel: while again == "y" or again == "Y": integer = input("Enter a positive integer: ") while denom <= integer: denom = denom*10 while denom > 1:

Help printing the integers of a longer number

2013-03-28 Thread khaosyt
I want to print the individual numbers of a large number using division and modulus division. For example: Enter a positive integer: 54321 5 4 3 2 1 -- http://mail.python.org/mailman/listinfo/python-list