Oct-16-2017, 06:04 AM
(Oct-16-2017, 03:56 AM)ijosefson Wrote: I would like to iterate through each value and verify they are positive.Well, you are going to need to try iterating then:
some_dict = {"a" : 5, "b" : 7, "c" : 9} for key in some_dict: print(key) for val in some_dict.values(): print(val) for key,val in some_dict.items(): print(key, val)