Re: [Tutor] using the loop function while another

2012-10-10 Thread Alan Gauld
On 10/10/12 02:14, eryksun wrote: another=input('Do you have another book to order for this student?', '\nEnter y for yes: ') Remove the comma, and this will parse correctly. Oops, yes good catch, don't know where that came from. another=input(''' Do you have

Re: [Tutor] using the loop function while another

2012-10-09 Thread eryksun
On Tue, Oct 9, 2012 at 7:39 PM, Alan Gauld wrote: > > another=input('Do you have another book to order for this student?', > '\nEnter y for yes: ') Remove the comma, and this will parse correctly. A comma in a function call is used to separate arguments. On its own a comma creates

Re: [Tutor] using the loop function while another

2012-10-09 Thread Alan Gauld
On 09/10/12 20:47, Amanda Colley wrote: Ok, here is my problem. If a person has two different people to order books for, then when using the loop option, How do you add the two seperate choices together for a final total of books cost? This looks a bit like it might be homework so I won't a

Re: [Tutor] using the loop function while another

2012-10-09 Thread Prasad, Ramit
Mark Lawrence wrote: > On 09/10/2012 20:47, Amanda Colley wrote: > > Ok, here is my problem. If a person has two different people to order > > books for, then when using the loop option, How do you add the two seperate > > choices together for a final total of books cost? > > > > another='y' >

Re: [Tutor] using the loop function while another

2012-10-09 Thread Mark Lawrence
On 09/10/2012 20:47, Amanda Colley wrote: Ok, here is my problem. If a person has two different people to order books for, then when using the loop option, How do you add the two seperate choices together for a final total of books cost? another='y' while another=='y' or another=='Y':