Unit C Reading assignment

Examples

zip

Chapter 12 Wrangle and Mangle Data

Read only the following section:

Bit Operators - with table 12-6

If you need to brush up on binary (base 2) numbers to get started, read Number Bases: Introduction & Binary Numbers.

Chapter 7 Tuples and Lists

Tuples

Scan. Read later. We will do lists first

Lists

Read all sections on lists.

I suggest you read Shallow and Deep Copy to get a better understanding of how copying works. In particular, whenever you are working with a collection of mutable collections, you will need to import the copy module and use the deepcopy method.

In connection with this, we will be using the == and the is() comparison operators and the built-in function id() to examine copies. Read Python 101: Equality vs Identity for a discussion of these.

To swap two elements in a list, I suggest you read Approach #1 in swap

Tuples Versus Lists

Scan. Read later. We will do lists first

There are No Tuples Comprehensons

Scan. Read later. We will do lists first

Coming up

Things to Do

skip; we will have our own exercises and assignments.