1 Introduction to Computer Science

1.1 Computer Science

What Do Computing Professionals Do?

Models, Algorithms, and Programs

Tools of the Trade

What Is Computer Science?

1.2 Computer Systems

Computer Hardware

Operating Systems

Networks and Network Protocols

Programming Languages

Software Libraries

1.3 Python Programming Language

Short History of Python

Setting Up the Python Development Environment

1.4 Computational Thinking

A Sample Problem

Abstraction and Modeling


Data Types

Assignments and Execution Control Structures

Chapter Summary

2 Python Data Types

2.1 Expressions, Variables, and Assignments

Algebraic Expressions and Functions

Boolean Expressions and Operators

Variables and Assignments

Variable Names

2.2 Strings

String Operators

Indexing Operator

2.3 Lists

List Operators

Lists Are Mutable, Strings Are Not

List Methods

2.4 Objects and Classes

Object Type

Valid Values for Number Types

Operators for Number Types

Creating Objects

Implicit Type Conversions

Explicit Type Conversions

Class Methods and Object-Oriented Programming

2.5 Python Standard Library

Module math

Module fractions

2.6 Case Study: Turtle Graphics Objects

Chapter Summary

Solutions to Practice Problems


3 Imperative Programming

3.1 Python Programs

Our First Python Program

Python Modules

Built-In Function print()

Interactive Input with input()

Function eval()

3.2 Execution Control Structures

One-Way Decisions

Two-Way Decisions

Iteration Structures

Nesting Control Flow Structures ...

Get Introduction to Computing Using Python: An Application Development Focus now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.