[Tutor] 3 Dimensional Dictionaries

Dominik George nik at naturalnet.de
Sat Jul 20 12:28:12 CEST 2013


Hi,

> world =
> [{'continent':'Asia','continent_code':1,'ocean':'Pacific','country':'India','country_code':1,'state':'Kerala',
> 'state_pin':500001},
>  [...]
> 
> i am trying to to make it in this format
> 

to clarify the task at hand: this is comparible to SQL's GROUP BY
clause, right?

-nik

-- 
<Natureshadow> Auf welchem Server liegt das denn jetzt…?
<mirabilos> Wenn es nicht übers Netz kommt bei Hetzner, wenn es nicht
            gelesen wird bei STRATO, wenn es klappt bei manitu.

PGP-Fingerprint: 3C9D 54A4 7575 C026 FB17  FD26 B79A 3C16 A0C4 F296
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 905 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/tutor/attachments/20130720/5eb4e7a1/attachment.pgp>


More information about the Tutor mailing list