The following code only returns the last row(222222) added to the machines dictionary. presumably I need some additional syntax to add rows to the dictionary rather than overwrite.
What do I need to add?
machinekey = "111111"
machines = { machinekey:[1,0,0,0,0,0,0,0,0,0,0,0,0] }
machinekey = "222222"
machines = { machinekey:[0,1,0,0,0,0,0,0,0,0,0,0,0] }
for machine in machines.keys():
print machine
--
http://mail.python.org/mailman/listinfo/python-list
