On Apr 11, 2:57 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
> IamIan a écrit :
>
> yearTotals = dict([(year, dict.fromkeys(months, 0)) for year in years])
>
> HTH

List comprehensions without a list?  What? Where? How?


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to