Pages

Thursday, April 17, 2014

Python: iterate over dictionary








for name in dict.keys():
    print(name)
    print(dict[name])
values = [ dict[name] for name in dict.keys() ]



No comments:

Post a Comment