Re: [Tutor] Huge list comprehension

2017-06-12 Thread Danny Yoo
On Sun, Jun 11, 2017 at 9:54 PM, syed zaidi wrote: > Thanks > One reason fornsharing the code was that I have to manually create over 100 > variables Don't do that. Anytime you have to manually repeat things over and over is a sign that you need a loop structure of

Re: [Tutor] Huge list comprehension

2017-06-12 Thread Alan Gauld via Tutor
On 12/06/17 05:54, syed zaidi wrote: > One reason fornsharing the code was that I have to manually create over 100 > variables > Is there a way i can automate thst process? I doubt very much that you *have* to create 100 varables, that's an implementation choice as part of your design. If you

Re: [Tutor] Huge list comprehension

2017-06-12 Thread syed zaidi
Thanks One reason fornsharing the code was that I have to manually create over 100 variables Is there a way i can automate thst process? Get Outlook for Android<https://aka.ms/ghei36> From: Abdur-Rahmaan Janhangeer Sent: Saturday, June 10, 3:35 PM Subject: Re: [Tutor] Huge list compreh

Re: [Tutor] Huge list comprehension

2017-06-12 Thread Abdur-Rahmaan Janhangeer
s there a way i can automate thst process? > > Get Outlook for Android <https://aka.ms/ghei36> > > From: Abdur-Rahmaan Janhangeer > Sent: Saturday, June 10, 3:35 PM > Subject: Re: [Tutor] Huge list comprehension > To: syed zaidi, tutor > > take a look at numpy > >

Re: [Tutor] Huge list comprehension

2017-06-10 Thread Alan Gauld via Tutor
On 10/06/17 08:35, Abdur-Rahmaan Janhangeer wrote: > take a look at numpy It seems he already has, np.array is in his code. It's just the imports that are missing I suspect. > and don't necessarily give us the whole code. it becomes too long without > purpose Yes although in this case it does

Re: [Tutor] Huge list comprehension

2017-06-10 Thread Abdur-Rahmaan Janhangeer
take a look at numpy and don't necessarily give us the whole code. it becomes too long without purpose Abdur-Rahmaan Janhangeer, Mauritius abdurrahmaanjanhangeer.wordpress.com On 6 Jun 2017 03:26, "syed zaidi" wrote: hi, I would appreciate if you can help me

Re: [Tutor] Huge list comprehension

2017-06-06 Thread Peter Otten
syed zaidi wrote: > > hi, > > I would appreciate if you can help me suggesting a quick and efficient > strategy for comparing multiple lists with one principal list > > I have about 125 lists containing about 100,000 numerical entries in each > > my principal list contains about 6 million

[Tutor] Huge list comprehension

2017-06-05 Thread syed zaidi
hi, I would appreciate if you can help me suggesting a quick and efficient strategy for comparing multiple lists with one principal list I have about 125 lists containing about 100,000 numerical entries in each my principal list contains about 6 million entries. I want to compare each small