[Tutor] [tutor] creating list of tuples

Varsha Purohit varsha.purohit at gmail.com
Tue Feb 26 03:48:05 CET 2008


Hello all,
       In my application i have to create a list of tuples. I have a for
loop which will create (x,y) tuple each time it iterates, and i ahve to
store each tuple in a list like

list1= [(x1,y1), (x2,y2).....]

any ideas how to do that ???

thanks,

-- 
Varsha Purohit,
Graduate Student
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080225/086d9106/attachment.htm 


More information about the Tutor mailing list