Re: [Tutor] reassign

2007-04-14 Thread Alan Gauld
"linda.s" <[EMAIL PROTECTED]> wrote >I wonder how to use colors from gray to black to represent a group of > values from small to large? Can you explain what you mean? Normally colours are represented in code as a tuple of three numbers for the RGB values. If its shades of grey then all three num

Re: [Tutor] reassign

2007-04-14 Thread linda.s
I wonder how to use colors from gray to black to represent a group of values from small to large? Thanks, Linda ___ Tutor maillist - [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] reassign

2007-04-09 Thread Rikard Bosnjakovic
On 4/8/07, linda.s <[EMAIL PROTECTED]> wrote: > how i can randomly reassign the values to different location in the list? >>> import random >>> mylist = [1,2,3,4,5,6,7,8,9] >>> mylist [1, 2, 3, 4, 5, 6, 7, 8, 9] >>> random.shuffle(mylist) >>> mylist [3, 6, 9, 4, 7, 1, 2, 8, 5] -- - Rikard - ht

Re: [Tutor] reassign

2007-04-08 Thread Tim Golden
linda.s wrote: > Hi, > I have a list: [2,5,8,0,1,7] > how i can randomly reassign the values to different location in the list? > for example: > Time 1: [5,2,8,0,1,7] > Time 2: [8,0,7,1,5,2] > Have a look at the .shuffle function in the random module. TJG ___

[Tutor] reassign

2007-04-08 Thread linda.s
Hi, I have a list: [2,5,8,0,1,7] how i can randomly reassign the values to different location in the list? for example: Time 1: [5,2,8,0,1,7] Time 2: [8,0,7,1,5,2] Thanks! Linda ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listin