An Intro to
Programming
with Python

Fall 2006
course
navigation

nov 1

Dictionaries
person = { 'name' : 'Jim', 'age' : 47, 'hair' : 'black', } print person['name']
Like an array, but we use strings rather than numbers.
'key' : 'value'
Discuss
In class
http://cs.marlboro.edu/ courses/ fall2006/python/ notes/ nov_1
last modified Wednesday November 1 2006 11:24 am EST

attachments [paper clip]

     name last modified size
   count_words.py Nov 1 2006 11:24 am 412B [TXT]interactive_python_in_class.txt Nov 1 2006 11:23 am 5.81kB [TXT]moby_dick.txt Nov 1 2006 11:24 am 1.20MB