intro-to-python/CONTENTS.md

18 KiB

Table of Contents

The materials are designed to resemble an interactive book.

It is recommended to follow the installation instructions in the README.md file and work through the content on one's own computer.

If this is not possible, the files can be viewed in a web browser either statically (i.e., read-only) on nbviewer or interactively (i.e., code can be executed) on Binder .

  • Chapter 0: Introduction
    • content (Python's History & Background; Open-source & Communities; JupyterLab; Programming vs. Computer Science; Learning Tips)
    • exercises (Mastering Markdown)
    • review questions
  • Part A: Expressing Logic
    • Chapter 1: Elements of a Program
    • Chapter 2: Functions & Modularization
      • content (Built-in Functions & Constructors; Function Definitions; Function Calls & Scoping Rules; Positional vs. Keyword Arguments; Modularization)
      • exercises (Volume of a Sphere)
      • content (Standard Library: math & random Modules; Third-party Packages: numpy Library; Writing one's own Modules)
      • summary
      • review questions
    • Chapter 3: Conditionals & Exceptions
    • Chapter 4: Recursion & Looping
      • content (Recursion; Examples: Factorial, Euclid's Algorithm, & Fibonacci; Duck Typing; Type Casting & Checking; Input Validation)
      • exercises (Towers of Hanoi)
      • content (Looping with while & for; Examples: Collatz Conjecture, Factorial, Euclid's Algorithm, & Fibonacci; Containers vs. Iterables)
      • content (Customizing Loops with break and continue; Indefinite Loops)
      • exercises (Throwing Dice)
      • summary
      • review questions
  • Part B: Managing Data and Memory
    • Chapter 5: Numbers & Bits
    • Chapter 6: Text & Bytes
    • Chapter 7: Sequential Data
      • content (Collections vs. Sequences; ABCs: Container, Iterable, Sized, & Reversible)
      • content (list Type; Indexing & Slicing; Shallow vs. Deep Copies; List Methods & Operations; Unpacking)