MODULE 02
Python for accounting records
9 submodules. Work through them in order; each one includes guided practice.
2.1Run and rerun a small program
- Notebooks, cells and runtimes
- Running a cell
- Editing and rerunning cells
2.2Name values and distinguish their types
- Variables and assignment
- Data types: numbers, text and True/False
- Printing results and comments
2.3Calculate before formatting
- Arithmetic and the order of operations
- Getting input from the user
2.4Lists and dictionaries: store related facts
- Lists
- Dictionaries
- Apply dictionary lookups: company equity
- Nested records and lists of dictionaries
- JSON text and Python objects
- Validating a parsed record
- Saving and loading JSON files
2.5Ask precise questions and choose a route
- Comparisons and True/False values
- Conditionals: if, elif and else
2.6Repeat a rule without losing a record
- Loops: for and range
2.7Give reusable logic a function name
- Functions: def, parameters and return
2.8Read errors as clues
- Reading error messages
- When something goes wrong
2.9Independent practice
- Mini project: a simple ledger
- Check your understanding