Jupyter Notebook exercises for Python beginners
Click “launch binder” above to launch the exercises in Binder, a read-only environment for Jupyter Notebooks. This means that your progress will be erased when the browser tab is closed. Please download the notebook files you wish to keep: right-click on the file and click "Download".
These exercises for Python beginners are part of a guided lesson package for H2 Computing students, with a greater focus on picking up Python features quickly.
For exercises with a focus on programming methodology, see Programming in Python.
The exercises are provided here, sans guidance.
The following topics are covered:
- Basic operators and data types
- Data manipulation
- Decision-making and branching; advanced formatting
- Lists; Iteration and looping
- Functions; File IO
- Standard libraries;
while
loops; files and directories; keyword arguments and default parameters
dict
;tuple
;set
- Recursion
- Advanced functions; program testing; handling errors
- Accumulator
- Ratchet
- Search (Linear and Binary)
- Tokenisation
- Greedy
- Hash Table