On 05.06.2014 23:53, Marko Rauhamaa wrote:
> or:
>
> def make_street_address_map(info_list):
> return dict((info.get_street_address(), info.get_zip_code())
> for info in info_list)
>
or, what I think is even clearer than your last one:
def make_street_address_map(info_list):
return { info.get_street_address(): info.get_zip_code()
for info in info_list }
Regards,
Johannes
--
>> Wo hattest Du das Beben nochmal GENAU vorhergesagt?
> Zumindest nicht öffentlich!
Ah, der neueste und bis heute genialste Streich unsere großen
Kosmologen: Die Geheim-Vorhersage.
- Karl Kaos über Rüdiger Thomas in dsa <[email protected]>
--
https://mail.python.org/mailman/listinfo/python-list