Get keys from a dicionary

Jon Clements joncle at googlemail.com
Fri Nov 11 11:09:30 EST 2011


On Nov 11, 1:31 pm, macm <moura.ma... at gmail.com> wrote:
> Hi Folks
>
> I pass a nested dictionary to a function.
>
> def Dicty( dict[k1][k2] ):
>         print k1
>         print k2
>
> There is a fast way (trick) to get k1 and k2 as string.
>
> Whithout loop all dict. Just it!
>
> Regards
>
> macm

I've tried to understand this, but can't tell if it's a question or
statement, and even then can't tell what the question or statement
is...

Care to eloborate?



More information about the Python-list mailing list