Iterating Through a Dictionary : Member : Dictionary PYTHON TUTORIALS


PYTHON TUTORIALS » Dictionary » Member »

 

Iterating Through a Dictionary


import os 
for k, v in os.environ.items()
    print "%s=%s" (k, v


print "n".join(["%s=%s" (k, vfor k, v in os.environ.items()])



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Dictionary
» Member