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

[Tutor] arrays, while loops

2012-02-18 Thread Deborah Knoll
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 "between" statment or an "or"?? send the array

Re: [Tutor] arrays in python

2008-06-28 Thread Mark Tolonen
"Kirk Z Bailey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Just wondering, if I can find a way to do a 2 dimensional array in python. 1 dimension would be a list it would seem; for 2, I could use a list of lists? Strange how I can't think of ever needing one since I discover

[Tutor] arrays in python

2008-06-28 Thread Kirk Z Bailey
Just wondering, if I can find a way to do a 2 dimensional array in python. 1 dimension would be a list it would seem; for 2, I could use a list of lists? Strange how I can't think of ever needing one since I discovered snake charming, but so many languages do foo dimensional arrays, it would s

Re: [Tutor] arrays

2006-09-14 Thread John Fouhy
On 15/09/06, federico ramirez <[EMAIL PROTECTED]> wrote: > an array to order the keys and then display it in order but..python orders > the array like this > > ['_1', '_10', '_11', '_12', '_13', '_2', '_3', '_4', '_5', '_6', '_7', '_8', > '_9'] > > and i want > > ['_1', '_2', '_3', '_4', '_5', '_6'

[Tutor] arrays

2006-09-14 Thread federico ramirez
Hi all! Im started with python some days ago, im trying to make a basic cgi script, with dbm, and dbm returns a dictionary witout order, so i put it in an array to order the keys and then display it in order but..python orders the array like this ['_1', '_10', '_11', '_12', '_13', '_2', '_3', '_4'

Re: [Tutor] arrays

2005-02-04 Thread Danny Yoo
On Fri, 4 Feb 2005, alieks lao wrote: > > Just out of curiosity, which tutorial are you reading? > > heres the url... > http://www.pentangle.net/python/ Hi Alieks, Ah, ok, that makes sense now. Michael William's tutorial assumes an environment where some third-party modules, like Numeric, ha

Re: [Tutor] arrays

2005-02-04 Thread Kent Johnson
Numeric is an add-on module, not part of the standard distribution. You have to download it and install it. (I'm surprised your tutorial doesn't point that out!) Numeric is still in use but there is a newer version called numarray. You can read about them both here: http://www.pfdubois.com/numpy/

Re: [Tutor] arrays

2005-02-04 Thread Danny Yoo
On Fri, 4 Feb 2005, alieks lao wrote: > in this tutorial it's telling me to > > "from Numeric import *" > > to load array functions > but it doesn't work is there a replacement for > "Numeric" or are arrays built in functions? Hi Alieks, Just out of curiosity, which tutorial are you reading?

[Tutor] arrays

2005-02-04 Thread alieks lao
in this tutorial it's telling me to "from Numeric import *" to load array functions but it doesn't work is there a replacement for "Numeric" or are arrays built in functions? thanks alex __ Do you Yahoo!? Yahoo! Mail - Helps protect you from n