Shakespeare: Difference between revisions

imported>Ynasser
imported>Ynasser
Line 124:
 
====Dictionaries====
* Dictionaries are another data structure commonly used in programming. Dictionaries (think of dictionary in real life) storesstore what we call <b> key-value pairs</b> (kind of like dictionaries in real life). One common thing to do with dictionary is determine an entry's value given its key.
* Entries in the dictionary are stored <b> orderless </b> (i.e. no way to arrange storage position according to value)
* <b>keys</b> for each entry in the dictionary must be unique, <b> values </b> do not have to be unique.
Line 152:
</pre>
For more information on dictionary: https://docs.python.org/2/tutorial/datastructures.html#dictionaries
 
====<font color="navy">Lists and Dictionaries Exercises====
<b>List & Iteration Exercise 1:</b>
Anonymous user