Practice
Python Practice
BasicHands-on Python lessons - write real code, run it instantly, and get checked by real tests.
Lessons
- Print and variables
- Conditionals
- Loops
- Lists
- Dictionaries
- Error handling
- Generators
- Fix the bug: read the traceback
- Classes and inheritance
- List comprehension rewrite
- Recursion kata: factorial and Fibonacci
- Stats calculator: mean and variance
- String-alignment formatter
- Time calculator
- Probability calculator
- Capstone: word counter
- Fix the bug: the second cart is not empty
- Fix the bug: the list shrinks while you walk it
- Fix the bug: the copy that everyone shares
- Fix the bug: every handler reports the last channel
- Fix the bug: the till is a penny short
- Capstone: the average that reads too low