min max from tuples in list

MRAB python at mrabarnett.plus.com
Thu Dec 12 07:36:51 EST 2013


On 12/12/2013 11:44, Steven D'Aprano wrote:
> On Wed, 11 Dec 2013 23:25:53 -0800, Robert Voigtländer wrote:
>
>> Hi,
>>
>> I have a list like this:
>>
>> a = [(52, 193), (52, 193), (52, 192), ...
>>
>>
>> I need to find a -performant- way to transform this into a list with
>> tuples (a[0],[a[0][1]min],[a[0][1]max]).
>
> I'm afraid I don't know what you mean by "performant". It doesn't appear
> to be an English word, so far as I can tell. Do you mean efficient?
>
[snip]

There's some debate over whether it's English or not:

http://english.stackexchange.com/questions/38945/what-is-wrong-with-the-word-performant




More information about the Python-list mailing list