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 

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 a 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
  • Class Members in Detail
  • Magic Methods
  • Properties
  • Inheritance
  • Polymorphism
  • 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

There are no further sessions taking place this academic year. Course dates for 2023-24 will be available to book from late September.

To book your place, please follow the booking process advertised on the main programme page