Key Information
Tutors: Dr Christopher Cooling
Course Level: Level 2
Course Credit: 1 credit
Prerequisites: Basic knowledge of Python is essential. Ideally an attendee will have used Python intensively for at least three months prior to attending this course. Python users who are already familiar with object-oriented coding will gain less from this course as it is primarily aimed at those learning about these features for the first time.
Duration: 3x 2 hour sessions
Format: Live online or live face to face with hands on practice
Course Resources
Python, like many other modern coding languages, is at its heart “object-oriented”. To use Python to its fullest requires the use of its object-oriented features. These features allow for greater modularity, easier troubleshooting, greater reuse of code and greater flexibility and utility of a given section of code. This course combines a discussion of the principles of object-oriented coding with implementation details and syntax specific to Python.
Syllabus:
- Types and Objects
- My First Class
- Attributes
- Magic Methods
- Properties
- Inheritance
- Polymorphism
- Abstract Classes
- Object-oriented code design principles
- An extended exercise
The course will be delivered through a combination of written explanations, demonstrations and hands-on practicals.
Learning Outcomes:
After completing this workshop, you will be better able to:
- Define objects and classes in relation to Python
- Use key object-oriented features of Python
- Create classes tailored to the task they are to perform
- Utilise object-oriented strategies to plan and develop research codes
Dates & Booking Information
- Monday 18 November 2024 (Part 1), Wednesday 20 November 2024 (Part 2) & Friday 22 November 2024 (Part 3), 10:00-12:00, Microsoft Teams
- Tuesday 11 February 2025 (Part 1), Thursday 13 February 2025 (Part 2) & Friday 14 February 2025 (Part 3), 14:00-16:00, Microsoft Teams
- Monday 02 June 2025 (Part 1), Thursday 05 June 2025 (Part 2) & Friday 06 June 2025 (Part 3), 14:00-16:00, South Kensington (In-Person Teaching)
To book your place, please follow the booking process advertised on the main programme page