Learn Object Oriented Programming in Python

Use classes when they help, skip the complexity when they don't, and learn OOP as a practical way to organize code.

What you'll learn in this Python course

Learn the fundamentals of the most widely-used programming paradigm today: object-oriented programming. You will model real-world problems within your programs, and learn how to write code that is easy to understand and maintain. By the end of this course you'll be writing production-quality Python code.

Chapter List

1
Clean Code
Understand why we have programming paradigms in the first place, and how they help us write more maintainable code
2
Classes
Learn about classes and objects, and how OOP differs from a functional programming paradigm.
3
Encapsulation
Learn how to write cleaner code by encapsulating data and methods.
4
Abstraction
Abstraction is a powerful tool that will make your code more robust and reusable.
5
Inheritance
The crux of OOP is the ability to inherit data and behaviors from other classes
6
Polymorphism
Polymorphism is one of the best ideas we've had as developers, learn how it works.

Join 63,391 students in the Learn Object Oriented Programming in Python course

Read reviews of their learning experiences

OOOf. tough but well worth it

(5/5)
Alex De Los Santos profile image

Alex De Los Santos

United States

wanted more in depth, using abc for abstractions, etc.. otherwise good foundational oop course

(3/5)
Kebinn  profile image

Kebinn

Singapore

Fun and informative, challenging at times but the lessons give you enough information to give you time to think and work it through.

(5/5)
Marco Terlato profile image

Marco Terlato

United States

A great introduction to Object-Oriented Programming in Python. The course explains classes, inheritance, encapsulation, polymorphism, and magic methods through practical exercises. I especially enjoyed solving problems that required applying multiple OOP concepts together. A useful course for building a solid foundation in Python OOP.

(5/5)
Ramadan Lotfy profile image

Ramadan Lotfy

Egypt, Cairo

I'm part of the 23.78% of members to have completed this course but I only care about the percentage of members to have completed the course on Arch. Plz fix...(I'm on Arch btw).

(5/5)
Chutz M profile image

Chutz M

United States

This a very well gronding course it has reinforced my freecodecamp skills very well I appreciate mostly polymophism and inheritance...very well

(5/5)
Kavin Kinyua Muriuki profile image

Kavin Kinyua Muriuki

Kenya

Great course, probably the one I've taken the most liking too so far (in terms of what it's taught me). Likely the most important too ngl.

(5/5)
John Anthony profile image

John Anthony

United States

The course taught me OOP.

(5/5)
Henson Lao profile image

Henson Lao

Philippines

This taught me more about Python.

(5/5)
Logan Puddu profile image

Logan Puddu

United States

or view more reviews

Mediocrity doesn't cut it anymore

The only way to become a great developer is to write a lot of code

Avoid tutorial hell

by writing a ton of code

Stay motivated with

a game-like curriculum

Build portfolio projects

to prove your skills

Delve deeper

into foundational concepts

Learn flexibly online

without interrupting your life

For 1% the price of college

to minimize your financial risk

Frequently asked Questions

Got questions? We've got answers

It's a way to organize code by grouping data and the functions that work on it into classes. Python supports it fully, but doesn't force it on you, so knowing when a class helps and when it just adds complexity is something we talk about in the course.