[Tutor] How to calculate high value from multiple lines for each column

Alan Gauld alan.gauld at btinternet.com
Thu Feb 25 17:04:10 EST 2016

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])


Alan G
Author of the Learn to Program web site
Follow my photo-blog on Flickr at:

More information about the Tutor mailing list