On Tue, 25 Oct 2005 18:02:47 +0200, Michael Ströder wrote:
> Dennis Benzinger wrote:
>>
>> I must be blind because I didn't find anything in the documentation
>> which says iterating over an dictionary iterates over its keys.
[snip]
>> Where is this information hidden? :)
>
> You should examine
Dennis Benzinger wrote:
>
> I must be blind because I didn't find anything in the documentation
> which says iterating over an dictionary iterates over its keys.
>
> For example
>
> a_dictionary = {0: "zero", 1: "one"}
> for x in a:
> print x
>
> gives you
>
> 0
> 1
>
> Where is this info
Hi!
I must be blind because I didn't find anything in the documentation
which says iterating over an dictionary iterates over its keys.
For example
a_dictionary = {0: "zero", 1: "one"}
for x in a:
print x
gives you
0
1
Where is this information hidden? :)
Bye,
Dennis
--
http://mail.py