How can I print a dictionary of queues without popping off the contents? I have something like this:
>>> mac = '\x04\xab\x4d'
>>> mydict = {}
>>> if mac in mydict.keys():
... mydict[mac].append("test")
... else:
... mydict[mac]=[]
... mydict[mac].append("test")
...
>>>
>>> for key,val in mydict.Items():
... print key
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'dict' object has no attribute 'Items'
>>> for key,val in mydict.Item():
... print key
and am wondering how I can display the contents of my dictionary...
Thank you! Ron