This document provides suggestions for Python practice exercises for students to work on, as a real application tutorial would exceed the time available. It recommends practicing topics students are least proficient in, working on previous tutorial sheets, or: implementing a vehicle class with car and bike subclasses; continuing work on Tutorial 3; creating and manipulating lists with at least 50 entries using comprehension; solving a system of linear equations from a matrix and vector; and putting implemented functionality into a module to use in another program.
This document provides suggestions for Python practice exercises for students to work on, as a real application tutorial would exceed the time available. It recommends practicing topics students are least proficient in, working on previous tutorial sheets, or: implementing a vehicle class with car and bike subclasses; continuing work on Tutorial 3; creating and manipulating lists with at least 50 entries using comprehension; solving a system of linear equations from a matrix and vector; and putting implemented functionality into a module to use in another program.
Technische Universit at M unchen Institut f ur Informatik Tobias Neckel
GRS, June 2013
Python course - Tutorial 4
A tutorial task for a real application with NumPy or SciPy would go far beyond the time for a single tutorial. Thus, we suggest that you use the time to practise those topics of the course which you are least procient in and to ask questions. You could also work on the last tutorial sheets. For example, you could: Implement a class and two subclasses (vehicle, car, and bike, e.g.). Think about possible properties of the superclass (that all vehicles have in common) and special properties of the derived subclasses. To really understand object oriented programming, it is crucial to practise it yourself. Work on the Tutorial 3, if desired. Create a list with at least 50 entries using list comprehension. Apply a function to each element to alter the list and nally lter some elements. Create a n n-Matrix A and a Vector b and solve the resulting system of linear equations Ax = b. Take any of the functionality you just implemented, put it in a module, and use it in some other python program.