Python object model
Previous: Regular expressions | Next: Programme |
Required course material for the lesson
Powerpoint: Object model and complex data
Resource: Example code - Data
Subjects covered
- Python objects
- Identity
- Mutable vs immutable
- Complex data
- Exam format
Exercises to be handed in
Important - read this before starting
This exercise set will be similar to the format of the exam. The content will obviously be different.
You have to download this python file. It contains some frame work code, but mostly some unfinished functions.
Each exercise is about finishing one of the functions in the file. You can write the function directly in the python file, or use VScode or other editor to write it, but then it has to be copied over to the python file. You must hand in the finished python file, not a .ipynb file.
Inability to understand or do this will make you fail the exam, so it is worth spending some time on the process.