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
    5. Data Input Exceptions