Dictionary question

Brian Elmegaard brian at rkspeed-rugby.dk
Tue Jul 18 09:04:14 EDT 2006


"Nick Vatamaniuc" <vatamane at gmail.com> writes:

> if l[-1].setdefault(a+c, x+e)<x+e:
>     l[-1][a+c]=x+e

Thanks for the answer. I will try it.

-- 
Brian (remove the sport for mail)
http://www.et.web.mek.dtu.dk/Staff/be/be.html
Rugbyklubben Speed Scandinavian Open 7s Rugby http://www.rkspeed.dk



More information about the Python-list mailing list