OT: This Swift thing
Johannes Bauer
dfnsonfsduifb at gmx.de
Sun Jun 15 05:33:08 EDT 2014
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 <hidbv3$om2$1 at speranza.aioe.org>
More information about the Python-list
mailing list