Okay, so things everyone should know about dictionaries, they are in the python manual but I still didn't know them until today. First off creating a dictionary in the code (ie hardcoded)
<code>d = dict(one=2, two=3)<br /></code>
This is a simpler way of doing things, and it sure beats having to rember all your quotes when doing:
<code>d = {'one': 2, 'two': 3}</code>
Granted the second way looks cooler! But we have to make compromises. Another cool thing, is taking a list of keys and list of values and turning them into a dictionary: