Iterating Through a Dictionary : For : Statement PYTHON TUTORIALS


PYTHON TUTORIALS » Statement » For »

 

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 Statement
» For