Valid Python Code?

Justin Sheehy dworkin at
Wed Feb 16 10:19:59 EST 2000

Anders M Eriksson <anders.eriksson at> writes:

> I'm just wondering is this a valid Python code snippet?
> import os
> for k,v in os.environ.values():
>     print k,v

No, but if you change os.environ.values to os.environ.items, it will
make a lot more sense.



More information about the Python-list mailing list