Skip to main content

Python Topics

Every topic we help with, grouped by level. Pick the one blocking you and get unstuck.

Start with the beginner tab if your assignment covers variables, control flow, functions, data structures, or file handling. Those five topics cover about 80% of first-year Python coursework. Work through them in order if you are starting from scratch; jump straight to the one blocking you if you already have the others.

Move on to the intermediate and advanced tabs for object-oriented programming, algorithms, error handling, and modules. Data analysis, web development, and machine learning each sit inside the advanced tab and map directly to library-heavy courses like DATA 100, Django projects, and scikit-learn assignments.

Each topic page includes working code examples, common pitfalls, and a copy button. If you need a cheatsheet or a step-by-step debugging guide, check the resources section.

Beginner topics

pyt

Python Basics

Fundamental concepts for beginners

  • Variables and Data Types
  • Operators and Expressions
  • Control Flow (if/else)
  • Loops (for/while)
  • Basic Input/Output
Python Basics
dat

Data Structures

Working with Python's built-in data structures

  • Lists and List Comprehensions
  • Dictionaries
  • Sets
  • Tuples
  • String Manipulation
Data Structures
fun

Functions

Creating and using functions in Python

  • Function Definition
  • Parameters and Arguments
  • Return Values
  • Lambda Functions
  • Scope and Namespaces
Functions
fil

File Handling

Reading and writing files in Python

  • Opening and Closing Files
  • Reading from Files
  • Writing to Files
  • Working with CSV Files
  • Error Handling with Files
File Handling

Stuck mid-assignment? Python Code Rescue fixes autograder failures and broken setups.

Stuck on one of these topics? Send the assignment and get working code back.