Computer Science with Python

This is a tutorial suitable for high school students, covering the content in ICS4U (Ontario). It assumes that the reader has some knowledge of Python, as well as some fundamental concepts of programming and computer science.

Tutorial

  1. Review of Python
    1. Mathematics, Input/Output and Data Types | Code
    2. Conditional Processing and Counted Repetition | Code
    3. Conditional Repetition and Input Validation | Code
    4. Strings, Tuples and Lists | Code
    5. Functions and Modules | Code
    6. String Formatting | Code
  2. Files and Exceptions
    1. Reading Data From Text Files | Files
    2. Writing Data To Text Files | Files
    3. Binary Files | Files
    4. File-Handling Exceptions | Files
    5. Data Input Exceptions
    6. Review of Files and Exceptions | Files
  3. Object-Oriented Programming
    1. Classes
    2. Abstraction and Encapsulation
    3. Inheritance
    4. Polymorphism
    5. UML and Class Design
    6. Review of Object-Oriented Programming
  4. Introduction to Pygame
    1. Pygame Basics
    2. Drawing Objects
    3. Images and Animation | Files
    4. Sounds, Fonts and Other Objects | Files
    5. Handling Events (UPDATED)
    6. Sprites and Spritesheets (UPDATED) | Files
    7. Using Object-Oriented Design Principles with Pygame | Files