Skip to main content

Object-oriented Programming in Python: Create Your Own Adventure Game

CO210 Online course

Learn object-oriented programming principles by creating your own text-based adventure game in Python.

Skip to course booking
Programming Computing Key stage 3 Key stage 4 KS3 and GCSE subject knowledge certificate
Free online course Approximately 8 hours of self-study

Object-oriented programming is a programming paradigm based on objects and data rather than actions and logic. 

This online course will introduce you to the principles of object-oriented programming in Python, showing you how to create objects, functions, methods, and classes. 

You’ll use what you learn to create your own text-based adventure game. You will have the chance to share your code with other learners, and see theirs. 

If you’re an educator, you’ll also be able to develop ideas for using object-oriented programming in your classroom.

Who is it for?

This course is designed for people who are already familiar with Python programming and want to learn a different programming paradigm, understand and use existing libraries more effectively, or create code which is useful to other people. We recommend that before taking this course you are comfortable using functions with parameters and return values–as covered in our Python Programming 102 course.

Topics covered

You'll cover the following topics:

  • how to write a program using an object

  • create your object-oriented text-based adventure game

  • extend classes to increase functionality 

  • class variables vs instance variables

How will you learn?

This online, self-paced course can be completed flexibly. You can join and start this course at any time after the advertised date. This course is not facilitated. You can learn independently or with colleagues to directly address your individual needs.


You will be able to:

  • Investigate how to use objects in programming, and understand the difference between a function and an object         
  • Develop your understanding of how writing your own class allows you to combine functions and data         
  • Demonstrate extending other people’s classes, including inheritance and polymorphism         
  • Produce a module to apply your learning of object oriented programming         
  • Collaborate by sharing your code with other people

This course is part of the KS3 and GCSE Computer Science subject knowledge certificate

Key stage 3 and GCSE Computer Science certificate

Our certificate is designed to help you develop or refresh your computer science subject knowledge.

Find out more

Join this course

You need to be logged in to join the course.

Login to join

Create STEM Learning account

This course is from the National Centre for Computing Education and is delivered by STEM Learning.

Adapted teaching and effective learning interventions in secondary computing

Develop an evidence-informed approach to education recovery over a sustained period, securing the computing education of young people following a period of great disruption.

Live remote training course

Adapting the Teach Computing Curriculum for mixed-year classes - short course

Explore progression within Teach Computing Curriculum and how to use this to adapt it for your own mixed-age setting.

Live remote training course

AI in primary computing

Explore how Artificial Intelligence (AI) may be linked to aspects of the primary computing curriculum, supporting creativity, digital literacy, and the use of information technology.

Live remote training course