On 25/02/16 20:44, Fosiul Alam wrote: > how ami I gettign the "values" ? as its not defiend > anywhere, so how we putting data into variables "values" ?
Look more closely at my previous post. >>> s_value= dict() >>> u_value=dict() >>> >> >> You don't need two variables here, just one will do, lets just call it >> values. >> data = values.setdefault(fields[0],[ [],[] ]) >> data[0],append(float(fields[10]) >> data[1],append(float(fields[11]) HTH -- 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 _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor