In <[EMAIL PROTECTED]>, Steve Howell
wrote:
>> def key_func(item):
>> return (len(item), item)
>>
>> data = ['viking', 'spam', 'parrot', 'ham', 'eric']
>> data.sort(key=key_func)
>> print data
>>
>
> Marc, when did the key feature get introduced, 2.4 or
> 2.5? I'm asking on behalf of the n
--- mark <[EMAIL PROTECTED]> wrote:
> Hi all
>
> I posted earlier on this but have changed my
> approach so here is my
> latest attempt at solving a problem. I have been
> working on this for
> around 12 hours straight and am still struggling
> with it.
>
> Write a program that reads the values
--- Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
>
> Maybe it's easier to use a key function instead of a
> compare function. A
> key function receives an element and must return
> something that is then
> sorted and the element ends up where the computed
> key is in the sorted
> list. L
En Sun, 27 May 2007 07:19:15 -0300, mark <[EMAIL PROTECTED]> escribió:
> I posted earlier on this but have changed my approach so here is my
> latest attempt at solving a problem. I have been working on this for
> around 12 hours straight and am still struggling with it.
Almost done. Just two thi
On May 27, 12:19 pm, mark <[EMAIL PROTECTED]> wrote:
> Hi all
>
> I posted earlier on this but have changed my approach so here is my
> latest attempt at solving a problem. I have been working on this for
> around 12 hours straight and am still struggling with it.
>
> Write a program that reads the
In <[EMAIL PROTECTED]>, mark wrote:
> Hi all
>
> I posted earlier on this but have changed my approach so here is my
> latest attempt at solving a problem. I have been working on this for
> around 12 hours straight and am still struggling with it.
>
> Write a program that reads the values for a
Hi all
I posted earlier on this but have changed my approach so here is my
latest attempt at solving a problem. I have been working on this for
around 12 hours straight and am still struggling with it.
Write a program that reads the values for a random list of cards from
a file, where each line i