Peanuts Python Course Website
  • Lessons
    • Lesson 1
      • Import Statements
      • Variables
      • Properties
      • Functions
      • Methods
      • Conditional Statements
    • Lesson 2
      • Types
      • Type Conversion
      • Classes
      • Loops
    • Lesson 3
      • Jupyter Notebooks
      • The Update Design Pattern
        • The Sprite Life-Cycle
      • Keyboard Interaction
        • The KeyCode class
        • Checking For Key Events
    • Lesson 4
      • Rotation
      • Collision Detection
      • Keyword arguments
      • More Sprite Properties
    • Lesson 5
      • Decomposition
      • Functions
      • The Scheduler Class
      • The Sprite’s delete() method
      • Randomization
    • Lesson 6
      • Turtle Graphics
        • Turtle Graphics in pycat
      • For Loops
      • Functions
        • Function Arguments
      • Extensions
        • Regular Polygon
        • User-controlled Turtle
      • Homework
    • Lesson 7
      • State
      • Mouse Click Event Handler
      • Tagging Sprites
      • Labels
      • Sound Effects
    • Lesson 8
      • Stopwatch Decomposition
      • Extending the Label Class
      • The on_update’s dt Parameter
      • Controlling the Stopwatch State
      • Extensions
    • Lesson 9
      • Individual Project and Presentation
      • The Sprite’s on_update Method
      • Scheduler Methods
        • The Scheduler.update() Method
        • The Scheduler.cancel_update() Method
        • The Scheduler.wait() Method
        • Scheduling functions with a dt argument
      • Animation Cycles
    • Lesson 10
      • Individual Project Overview
      • Today’s Plan
        • 1. Brainstorming
        • 2. Decomposition
        • 3. Planning
        • 4. Implementation
      • Presentation
        • 1. Introduction (~1 minute)
        • 2. Demo (~1-2 minutes)
        • 3. Discuss the Implementation (~1-2 minutes)
        • 4. Questions and Comments
    • Lesson 11
      • Lists
        • Initialization
        • Accessing Elements by Index
      • Part 1: Basic Slideshow
      • Part 2: Slideshow with Next Button
      • Part 3: Infinite Slideshow
        • The len() Function
      • Part 4: Slideshow with Previous and Next Button
        • Scope: Global vs. Local Variables and the global Keyword
    • Lesson 12
      • Review Lists, Loops, and Functions
        • List Initialization
        • Accessing List Elements by Index
        • The len() Function
        • For Loops with range()
        • Functions
        • Exercise 1
      • Iterating Over a List
        • Exercise 2
      • Conditions in For Loops
        • Exercise 3
      • Return Values from Functions
        • Exercise 4
        • Using return to Stop Execution
        • Exercise 5
        • Python’s in Keyword
    • Lesson 13
      • Review Homework
        • Returning a list from a function
      • For Each Loops
      • Particle Effects
    • Lesson 14
      • The Player Class
      • The PlayerBullet Class
      • The Enemy Class
      • PlayerBullet - Enemy Interaction
      • The EnemyBullet Class
      • EnemyBullet - Player Interaction
  • Homework
    • Homework 1 (Python Setup)
    • Homework 2 (Jupyter Notebook)
    • Homework 3 (Colorful Squares)
      • Part 1
      • Part 2
      • Part 3
    • Homework 4 (Math and Emojis)
    • Homework 5 (Lists and Functions)
  • Notes
    • Variables
      • Assigning values
      • Naming Variables
      • Data Types
        • The type() Function
    • Type Conversion
    • Operators
      • Comparison Operators
      • Logical Operators
      • Arithmetic Operators
    • Strings
      • String Assignment
      • Multi-line Strings
      • Escape Characters
  • Tutorials
    • Git Tutorial
    • Jupyter Notebooks
      • Editors
        • Jupyter Notebook Web Application
        • VS Code
      • Document Structure
        • Markdown Cells
        • Code Cells
        • Command Mode vs. Edit Mode
      • Some Useful Keyboard Shortcuts
        • Command Mode Shortcuts
        • Edit Mode Shortcuts
  • Setup
    • 1. Anaconda
    • 2. Visual Studio Code
    • 3. Git-SCM
    • 4. Pycat
  • Binder
    • Playground
    • Python Tour
  • Resources
  • Student Work
    • 王奕詠 (Yong)
    • 顏浚翊 (Lucas)
    • Justyna
    • 張翊頡 (Capri)
Peanuts Python Course Website
  • »
  • Search


© Copyright 2022 Charles Morace.

Built with Sphinx using a theme provided by Read the Docs.