PyCon intro tutorial/Python scripts2: Difference between revisions

no edit summary
imported>Jesstess
No edit summary
imported>Jesstess
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 7:
# How do you create a new dictionary?
# How do you replace items in a dictionary?
# If you have a dictionary <codepre>flavors = {"Adam": "vanilla", "Jessica": "chocolate"}</codepre> and execute the code <codepre>flavors["Adam"] = "rum raisin"</codepre> what does <code>flavors</code> now look like?
# What are 3 examples of when using dictionaries would be a good idea?
 
Anonymous user