Anonymous user
PyCon intro tutorial/Python scripts2: Difference between revisions
PyCon intro tutorial/Python scripts2 (view source)
Revision as of 15:54, 9 April 2014
, 10 years agono edit summary
imported>Jesstess No edit summary |
imported>Jesstess No edit summary |
||
Line 7:
# How do you create a new dictionary?
# How do you replace items in a dictionary?
# If you have a dictionary <pre><code>flavors = {"Adam": "vanilla", "Jessica": "chocolate"}</code></pre> and execute the code <pre?<code>flavors["Adam"] = "rum raisin"</code></pre> what does <code>flavors</code> now look like?
# What are 3 examples of when using dictionaries would be a good idea?
|