> On 9/10/2010 5:22 AM, lists wrote:
>>>
>>> you could try random.shuffle and save a lot of time, it takes a mutable
>>> sequence (like a list) and shuffles it
>>
>> Hey there,
>>
>> For the few exercises I've been doing, I think the author has been
>> attempting to make the reader do things 'the
On 9/10/2010 5:22 AM, lists wrote:
you could try random.shuffle and save a lot of time, it takes a mutable
sequence (like a list) and shuffles it
Hey there,
For the few exercises I've been doing, I think the author has been
attempting to make the reader do things 'the difficult way' so that
th
On 9/10/2010 5:22 AM, lists wrote:
you could try random.shuffle and save a lot of time, it takes a mutable
sequence (like a list) and shuffles it
Hey there,
For the few exercises I've been doing, I think the author has been
attempting to make the reader do things 'the difficult way' so that
th
Ooops, I forgot to send to the list too!
-- Forwarded message --
From: lists
Date: Fri, Sep 10, 2010 at 10:22 AM
Subject: Re: [Tutor] Random list exercise
To: Christopher King
> you could try random.shuffle and save a lot of time, it takes a mutable
> sequence (like
forgot to send it to the list
On Thu, Sep 9, 2010 at 9:58 PM, Christopher King wrote:
> you could try random.shuffle and save a lot of time, it takes a mutable
> sequence (like a list) and shuffles it
>
>
> On Thu, Sep 9, 2010 at 6:39 PM, lists wrote:
>
>> >>> Several small and not so small poin
>>> Several small and not so small points:
>>>
>>> 1. you assign wordslen each pass through your loop. While it doesn't
>>> matter in a small loop, it wastes time on the order of the size of your
>>> list. Instead move wordslen = len(... above your while loop. Any time you
>>> put code in a loo
>>>
>>> Hi tutors,
>>>
>>> Still on my Python learning journey! I've just competed an exercise
>>> which asks the student to "Create a program that creates a list of
>>> words in random order. This program should print all the words and not
>>> repeat any." I've printed the list for my own needs. T
>
>
> On Thu, Sep 9, 2010 at 4:51 PM, lists wrote:
>>
>> Hi tutors,
>>
>> Still on my Python learning journey! I've just competed an exercise
>> which asks the student to "Create a program that creates a list of
>> words in random order. This program should print all the words and not
>> repeat an
On Thu, Sep 9, 2010 at 5:42 PM, Joel Goldstick wrote:
>
>
> On Thu, Sep 9, 2010 at 4:51 PM, lists wrote:
>
>> Hi tutors,
>>
>> Still on my Python learning journey! I've just competed an exercise
>> which asks the student to "Create a program that creates a list of
>> words in random order. This p
On Thu, Sep 9, 2010 at 4:51 PM, lists wrote:
> Hi tutors,
>
> Still on my Python learning journey! I've just competed an exercise
> which asks the student to "Create a program that creates a list of
> words in random order. This program should print all the words and not
> repeat any." I've print
Hi tutors,
Still on my Python learning journey! I've just competed an exercise
which asks the student to "Create a program that creates a list of
words in random order. This program should print all the words and not
repeat any." I've printed the list for my own needs. The list
randwords aims to a
11 matches
Mail list logo