[Tutor] Automation

bob gailer bgailer at gmail.com
Mon Nov 4 01:21:44 CET 2013


Always reply in such a way that a copy goes to the tutor list.

On 11/3/2013 5:56 PM, Renato Barbosa Pim Pereira wrote:
> Solved:
>
> for row in column:
>    print row[0]
>
> Sorry for my ignorance, by now, how can I locate the min/max value for 
> the printed row?, thanks for patience.

Collect the elements in a list.
Apply min() and max() to the list.
Use list.index() to get the position of the value in the list.

Or write your own program to examine each value, tracking when it gets 
smaller (bigger) and also tracking the index where that change occurs,

-- 
Bob Gailer
919-636-4239
Chapel Hill NC



More information about the Tutor mailing list