Re: [Tutor] arrays, while loops

2012-02-20 Thread Ricardo Araoz
El 20/02/12 13:42, Dave Angel escribió: > I'm not sure who you are, but you forgot to include the list. > Therefore I'll forward this to the list, and add my comments about > your suggestions. > > On 02/20/2012 11:31 AM, Ricardo Araoz wrote: >> Untested : >> while True: >> try: >> am

Re: [Tutor] arrays, while loops

2012-02-20 Thread bob gailer
Thanks for your response. Please always reply-all so a copy goes to the tutor list. I'm cc'ing this to that list. On 2/19/2012 10:13 AM, Deborah Knoll wrote: This is for a class - I wasn't trying to hide that fact. I didn't want someone to write this for me, I understand and appreciate that.

Re: [Tutor] arrays, while loops

2012-02-20 Thread Dave Angel
I'm not sure who you are, but you forgot to include the list. Therefore I'll forward this to the list, and add my comments about your suggestions. On 02/20/2012 11:31 AM, Ricardo Araoz wrote: El 20/02/12 00:00, Dave Angel escribió: On 02/19/2012 07:01 PM, Deborah Knoll wrote: A couple of

Re: [Tutor] arrays, while loops

2012-02-19 Thread Dave Angel
On 02/19/2012 07:01 PM, Deborah Knoll wrote: Hi You forgot to include the list in your reply, so your message came only to me. That's not the way to keep a discussion going, for several reasons. Normally, you should just do a Reply-All to messages to add to the thread. or you can make su

Re: [Tutor] arrays, while loops

2012-02-18 Thread bob gailer
On 2/18/2012 1:35 PM, Deborah Knoll wrote: Hi [snip] You've received a (perhaps confusing and some incorrect) melange of responses. I hesitate to add to the pile yet feel compelled to put in my comments. 1) thanks for seeking help. 2) this appears to be homework. Our normal policy is to no

Re: [Tutor] arrays, while loops

2012-02-18 Thread Alan Gauld
On 18/02/12 18:35, Deborah Knoll wrote: make sure the numbers entered are greater than 0 and less than 1001 (can't get this) - is there a way to write a "between" statment or an "or"?? Several replies have shown how to do "between". To use or you would do: if n < 0 or n > 1001: # handle e

Re: [Tutor] arrays, while loops

2012-02-18 Thread Dave Angel
On 02/18/2012 01:35 PM, Deborah Knoll wrote: Hi I need some help with my program. I need to: First thing you need to do when asking a question is to establish what version of Python you're running, and on what OS . In this case OS probably doesn't matter, but version does. Mark Lawrence assu

Re: [Tutor] arrays, while loops

2012-02-18 Thread Mark Lawrence
On 18/02/2012 18:35, Deborah Knoll wrote: Hi I need some help with my program. I need to: Inside a getNumbers() function: Make an array that holds 7 elements - (got that done) make sure the numbers entered are greater than 0 and less than 1001 (can't get this) - is there a way to write a "betw

Re: [Tutor] arrays, while loops

2012-02-18 Thread Joel Goldstick
On Sat, Feb 18, 2012 at 1:35 PM, Deborah Knoll wrote: > Hi > I need some help with my program. I need to: > > Inside a getNumbers() function: > Make an array that holds 7 elements - (got that done) > make sure the numbers entered are greater than 0 and less than 1001 (can't > get this) - is there