Please enable JavaScript to use CodeHS

Introduction to Python Programming

Additional Topics

Teach your program to make decisions based on the information it receives. Learn how to decompose your program into smaller pieces that work together to solve a problem!

Lessons

23.1 Short Circuit Evaluation

  • Short Circuit Evaluation
  • Short Circuit Evaluation
  • Road Trip
  • Divisibility
  • Short Circuit Badge

23.2 De Morgan's Laws

  • De Morgan's Laws
  • De Morgan's Laws
  • De Morgan's Law for AND
  • De Morgan's Law for OR
  • Amusement Park

23.3 More Built-in Modules

  • Introduction to Built-in Modules
  • More with the math Module
  • Math Module Practice
  • The random Module
  • Random Events
  • +9 more

23.4 Error Handling with Exceptions

  • Exceptions in Python
  • Exceptions Quiz
  • Hierarchy of Exception Types
  • Exceptions Reflection
  • Valid Username Checker
  • +4 more

23.5 Assertions and Unit Testing

  • Introduction to Assertions
  • The Unit Test Module
  • Unit Test Assert Methods
  • Assert Practice
  • Unit Test Practice
  • +1 more

23.6 Creating Directories

  • Introduction to Directories
  • Managing Directories
  • Directory Management Practice
  • Directories Quiz

23.7 Pydoc and Docstrings

  • Introduction to Pydoc
  • Using Help and Pydoc
  • Writing Docstrings Practice
  • Pydoc Quiz

23.8 Last-In, First-Out

  • Last-In, First-Out
  • Stack Data Structure Quiz
  • Stack Class Implementation
  • Reverse a Word
  • Browser History Tracker
  • +1 more

23.9 First-In, First-Out

  • Data Structures Notes
  • First-In, First-Out
  • Queue Data Structure Quiz
  • Queue Implementation
  • Food Storage
  • +4 more

23.10 Linear Search

  • Introduction to Linear Search
  • Searching a List of Fruit
  • Exploration: Forward and Reverse Search
  • Linear Search Quiz
  • Draft Day Search
  • +2 more

23.11 Binary Search

  • Guess the Number
  • Guess the Number Reflection
  • Introduction to Binary Search
  • Binary Search Quiz
  • Guessing Game with Binary Search
  • +3 more

Courses that include this module