# Introduction to Programming in Python

Source: https://helio.education/subjects/computer-science/intro-python  
Subject: Computer science  
Grades: College

Introduction to Programming in Python, college. 12 units and 37 lessons, from Values, types and expressions to Testing and debugging, talked through step by step.

## Values, types and expressions

- Values, types and expressions
- Variables and assignment
- Input, output and type conversion

## Booleans and conditionals

- Booleans and comparisons
- if, elif and else

## Loops

- while loops
- for loops and range
- Loop patterns: accumulate, count, search
- Nested loops

## Functions

- Defining and calling functions
- Scope and the call stack
- Default and keyword arguments and docstrings
- Designing with functions

## Strings

- String indexing and slicing
- String methods and immutability
- Processing text with loops

## Lists and tuples

- Lists: indexing and mutation
- Traversing lists
- Aliasing and mutability
- Tuples and unpacking
- Nested lists and grids
- List comprehensions

## Dictionaries and sets

- Dictionaries
- Sets
- Nested data: lists of dictionaries

## Files and exceptions

- Reading and writing files
- Exceptions
- Processing CSV data

## Classes and objects

- Classes, objects and __init__
- Methods, self and __str__
- Inheritance

## Recursion

- Recursion: base case and recursive case
- Recursion on strings and lists

## Searching and sorting

- Linear and binary search
- Selection sort and insertion sort

## Testing and debugging

- Testing with assert and test cases
- Debugging

---

Helio is an AI tutor you talk to, in math, science, English and history. It draws each step on a board and checks the math. Plans and prices: https://helio.education/pricing. Start free: https://helio.education/signup
