Re: [Tutor] max min value in array

2009-09-17 Thread Rich Lovely
2009/9/17 Kent Johnson : > On Thu, Sep 17, 2009 at 11:01 AM, steve wrote: >> On 09/17/2009 06:04 PM, Kent Johnson wrote: >>> >>> On Thu, Sep 17, 2009 at 8:06 AM, Rich Lovely >>>  wrote:  2009/9/17 Rayon: > >  I need to find the max and min value from some floats in a array: >>> >

Re: [Tutor] max min value in array

2009-09-17 Thread Kent Johnson
On Thu, Sep 17, 2009 at 11:01 AM, steve wrote: > On 09/17/2009 06:04 PM, Kent Johnson wrote: >> >> On Thu, Sep 17, 2009 at 8:06 AM, Rich Lovely >>  wrote: >>> >>>  2009/9/17 Rayon:  I need to find the max and min value from some floats in a array: >> >>>  Depending on the size of the arr

Re: [Tutor] max min value in array

2009-09-17 Thread Kent Johnson
On Thu, Sep 17, 2009 at 8:06 AM, Rich Lovely wrote: > 2009/9/17 Rayon : >> I need to find the max and min value from some floats in a array: > Depending on the size of the array, there's two methods:  Using the > max and min builtin functions, which will be faster for small arrays, > or hand-codi

Re: [Tutor] max min value in array

2009-09-17 Thread Rich Lovely
2009/9/17 Rayon : > I need to find the max and min value from some floats in a array: > > ___ > Tutor maillist  -  tu...@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor > > Depending on the size

Re: [Tutor] max min value in array

2009-09-17 Thread Kent Johnson
On Thu, Sep 17, 2009 at 7:37 AM, Rayon wrote: > I need to find the max and min value from some floats in a array: Did you try the min() and max() functions? Kent ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: htt