[Tutor] Huge list comprehension

Alan Gauld alan.gauld at yahoo.co.uk
Mon Jun 12 13:33:46 EDT 2017


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 tell us what the problem is you are trying to solve
we might be able to suggest a more manageable solution
 - such as a better data structure perhaps?

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list