Skip main navigation
We use cookies to give you a better experience, if that’s ok you can close this message and carry on browsing. For more info read our cookies policy.
We use cookies to give you a better experience. Carry on browsing if you're happy with this, or read our cookies policy for more information.
Online course

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

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

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

A fun introduction to object-oriented programming in Python

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.

Skip to 0 minutes and 4 secondsOn this course, we will take your programming to the next level by learning object-oriented principles through creating a text-based adventure game. This course is aimed at educators with some programming experience, but who have never programmed in the object-oriented style. I'm Laura Sach, Content and Curriculum Manager at the Raspberry Pi Foundation, and I am your lead educator for this course. I belong to the education team, where I write lots of the projects you can find on the Raspberry Pi website. This course is structured to take you through four weeks of learning about object-oriented programming. In week 1, we will start our object-oriented programming journey creating a turtle race and making patterns with shapes using classes that were already written for us.

Skip to 0 minutes and 48 secondsw In week 2, you will learn how to write your own classes in order to create your own customised objects. In week 3, we will extend the class, and in week four, we will complete the code field game and share it. I hope this will make it a fun and purposeful learning experience for you to learn object-oriented programming. I can't wait to see what you create.

What topics will you cover?

  • Introduce the principles of object-oriented programming in Python.
  • Understand the difference between a function and an object.
  • Create objects, functions, methods, and classes.
  • Write a text-based adventure game.
  • Extending other people’s classes, including inheritance and polymorphism.
  • Share your code with other learners, and see theirs.
  • Develop ideas for using object-oriented programming in the classroom.

When would you like to start?

What will you achieve?

By the end of the course, you'll be able to...

  • Explore using 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.

Who is the course 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.

It will be particularly useful for A level educators and students.

What software or tools do you need?

Python 3 or Trinket.

What do people say about this course?

Best short course I've done. I've learnt programming concepts I've struggled with previously without even trying.

Charlie Plumley

This was such a simple and informative course, I learnt things that I was previously confused about. I'm not an expert but I am proud to say that I now know so much more than before I started this course.

Alliyah A.

Who will you learn with?

Laura Sach

Laura creates and maintains Raspberry Pi educational resources. Aside from computers, she loves cats, cakes, board games and making jam.

Who developed the course?

The Raspberry Pi Foundation works to put the power of digital making into the hands of people all over the world, so they are capable of understanding and shaping our increasingly digital world.

Learners collage mobile
Join this course

Free
$0

  • Access to this course for 6 weeks
  • Includes any articles, videos, peer reviews and quizzes

Upgrade
$44

  • Unlimited access to this course
  • Includes any articles, videos, peer reviews and quizzes
  • Certificate of Achievement to prove your success when you're eligible
  • Download and print your Certificate of Achievement anytime
Contact FutureLearn for Support