Python Dictionaries - University of Michigan
Python Dictionaries
Chapter 9
Python for Informatics: Exploring Information
Unless otherwise noted, the content of this course material is licensed under a Creative
Commons Attribution 3.0 License.
.
Copyright 2010- Charles Severance
What is a Collection?
?
A collection is nice because we can put more than one value in them
and carry them all around in one convenient package.
?
?
?
We have a bunch of values in a single variable
We do this by having more than one place in the variable.
We have ways of finding the different places in the variable
What is not a Collection
?
Most of our variables have one value in them - when we put a new
value in the variable - the old value is over written
$ python
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
>>> x = 2
>>> x = 4
>>> print x
4
A Story of Two Collections..
?
List
?
?
A linear collection of values that stay in order
Dictionary
?
A bag of values, each with its own label
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- pandas dataframe notes university of idaho
- programming principles in python csci 503
- python dictionaries university of michigan
- python tutorial
- embed python scripting in c applications
- python 3 tutorialspoint
- prices and the values are goog 100 and 490
- python 3 cheat sheet limsi
- university of california berkeley college of engineering
Related searches
- university of michigan admissions staff
- university of michigan admission requirement
- university of michigan sat scores
- university of michigan payroll office
- university of michigan application deadline
- university of michigan act requirements
- university of michigan entrance requirements
- university of michigan transfer deadline
- university of michigan philosophy dept
- university of michigan applicant portal
- university of michigan neurology
- university of michigan hospital neurology