Computer science tutor
Programming in Python, data structures and how a computer runs a program.
Lessons to start with
- Values, types and expressionsEvaluate a Python arithmetic expression, including //, % and **, and say its value and its type.
- Booleans and comparisonsEvaluate a condition built from comparisons and and, or, not, and write one for a range or for the leap-year rule.
- while loopsWrite and trace a while loop, with a counter or a sentinel, and say how many times its body runs.
- Defining and calling functionsDefine a function with parameters and return, call it with arguments, and tell what it returns from what it prints, including the None of a function without return.
- String indexing and slicingRead characters with positive and negative indexes, take slices s and s, and predict each from a drawn index row.
- Lists: indexing and mutationCreate a list, read and change its items by index, and use append, insert, pop and remove, saying what the list is after each call.
- DictionariesStore, look up, add, update and loop over key-value pairs in a dictionary, count words with one, and say which keys a dictionary accepts.
- Reading and writing filesRead a text file line by line into values, and write results to a new file in the mode that keeps the data.
- Classes, objects and __init__Write a class with __init__ and attributes, make objects from it, and say that each object keeps its own attributes while two names can point to one object.
- Recursion: base case and recursive caseWrite recursive functions with a base case and a smaller recursive call, and trace them on the call stack.
- Linear and binary searchWrite linear search and binary search, tracing binary search's low, mid and high on a sorted list and counting comparisons, up to n against about log2 n.
- Testing with assert and test casesWrite assert test cases for ordinary, edge and error inputs, and find the bugs that only an edge case reveals.
More subjects
- Calculus
- Statistics
- Linear algebra and differential equations
- Proofs and discrete math
- Chemistry
- Biology
- Anatomy and physiology
- Physics
- Circuits and electrical engineering
- Statics, dynamics and mechanics
- Economics
- Accounting
- Finance
- Business
- Real estate
- Psychology
- Sociology and anthropology
- Philosophy
- Political science
- History
- Writing, literature and speaking




