[BangPypers] list problem

Emil Chacko emilchacko at gmail.com
Thu Jul 22 12:49:31 CEST 2010


>>> for subLi in x:
...  if(xdictstart.has_key(subLi[0])):
...   if(xdictstart[subLi[0]]>subLi[1]):
...    xdictstart[subLi[0]]=subLi[1]
...  else:
...   xdictstart[subLi[0]]=subLi[1]

The opposite can be done to obtain the xdictend.This is one way.There might
be some easier way's but i'm not aware it.


More information about the BangPypers mailing list