Chapter 11

Organizing Information with Python

Python has powerful tools for organizing information and making decisions. For example, you can save time by creating reusable blocks of code.

Get Started with Lists

Using List Methods

Explore Tuples

Work with Dictionaries

Understanding Repeats and Decisions

Make Decisions

Work with Loops and Repeats

Understanding Functions and Objects

Create a Function

Define a Class

Using a Class

Load Modules

Work with pickle

Using the Debugger

Get Started with Lists

You can use a list to collect information of more than one type. Lists can hold numbers, strings, and the more complex types of data introduced later in this chapter. You can select an item by its index or by its value.

To create a list, place the ...

Get Teach Yourself VISUALLY Raspberry Pi now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.