Re: [Tutor] sorting data from multiple arrays

2007-03-23 Thread Kent Johnson
Jeff Peery wrote: > ... what is '*' in '*temp'? thanks! Say you have a function of 3 arguments: In [1]: def add(a, b, c): ...: return a+b+c Normally to call it, you just specify the three arguments: In [2]: add(1, 2, 3) Out[2]: 6 Suppose the arguments were already in a list, what would y

Re: [Tutor] sorting data from multiple arrays

2007-03-22 Thread Jeff Peery
... what is '*' in '*temp'? thanks! J Kent Johnson <[EMAIL PROTECTED]> wrote: Jeff Peery wrote: > hello, I typically run into this problem and I'm not always sure of the > most efficient way to handle it. I often work with multiple arrays of > data, say arrays a, b, and c, and I want to sort the

Re: [Tutor] sorting data from multiple arrays

2007-03-22 Thread Jeff Peery
Thanks for all the responses, that is a huge help! Jeff Kent Johnson <[EMAIL PROTECTED]> wrote: Jeff Peery wrote: > hello, I typically run into this problem and I'm not always sure of the > most efficient way to handle it. I often work with multiple arrays of > data, say arrays a, b, and c, and

Re: [Tutor] sorting data from multiple arrays

2007-03-22 Thread Kent Johnson
Jeff Peery wrote: > hello, I typically run into this problem and I'm not always sure of the > most efficient way to handle it. I often work with multiple arrays of > data, say arrays a, b, and c, and I want to sort the elements of b and c > based on a. for example: > > a = [3,2,1,4] > b = ['hi'

Re: [Tutor] sorting data from multiple arrays

2007-03-22 Thread R. Alan Monroe
> hello, I typically run into this problem and I'm not always sure of the most > efficient way to handle it. I often work with multiple arrays of data, say > arrays a, b, and c, and I want to sort the > elements of b and c based on a. for example: > a = [3,2,1,4] > b = ['hi', 'my','name', 'is']

[Tutor] sorting data from multiple arrays

2007-03-22 Thread Jeff Peery
hello, I typically run into this problem and I'm not always sure of the most efficient way to handle it. I often work with multiple arrays of data, say arrays a, b, and c, and I want to sort the elements of b and c based on a. for example: a = [3,2,1,4] b = ['hi', 'my','name', 'is'] c = [5,2,4,