Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
A Magical Tour Through Object-Oriented Programming in Python
24 students
Last updated 12/2024
English

What you'll learn

  • The mindset and key concepts of object-oriented programming in Python
  • How to define classes with data attributes and methods
  • How to use special methods to integrate classes with Python's core features
  • How to use inheritance and other topics in Python OOP

Course content

7 sections48 lectures4h 40m total length
  • Let the Magic Begin2:06

    Explore object oriented programming in Python through a Harry Potter themed narrative that makes relearning OOP engaging. Empower your understanding of Python's OOP concepts with a lighthearted yet serious approach.

  • Welcome to Hogwarts School of Codecraft and Algorithmancy • Course Overview3:14

    Embark on a seven-year Hogwarts-style tour of object oriented programming in Python, from the OOP mindset to defining classes, attributes, methods, object interactions, inheritance, and dunder, class, and static methods.

  • First Day at School • Object-Oriented Programming Mindset4:47

    Learn how programming stores data and acts on it, and how object oriented programming unites data with doing stuff with data as objects in Python, with lists and append.

  • Not All Parselmouths are Slytherins • Everything is An Object in Python3:02

    Learn how in Python everything is an object, and how to use classes as templates to create custom data types and objects that solve real coding problems.

  • There are Muggles, Pure Bloods, and Pragmatists4:36

    Explore how Python object usage differs from deeper object oriented programming, and learn to balance classes and objects with a pragmatic mindset using the muggles, purebloods, and pragmatists analogy.

  • Terminology Corner2:59

    Explore object-oriented programming terms in Python, including class as a template and object as an instance, and learn how data and methods live in each object.

Requirements

  • Students should be familiar with basic Python programming, including defining functions

Description

This course covers Object-Oriented Programming in Python using a different approach. It's a tour of object-oriented programming (OOP) through a Harry Potter-themed extended example.

Welcome to Hogwarts School of Codecraft and Algorithmancy!

The course covers:

  • OOP fundamentals and mindset—what's different about OOP and why do we need it?

  • Creating classes, defining `.__init__()` and understanding what it does, and creating data attributes

  • Defining methods to give objects the ability to do stuff

  • Interaction between different classes

  • Inheritance in OOP

  • Special methods, also known as dunder methods

  • Class attributes and class methods

It's not your usual OOP course…

---

About me, your instructor

I've been teaching Python for a decade. Before that, I worked as a physicist and used programming in my research work for over a decade.

My focus is on communicating clearly, in a friendly and relaxed manner. I'm the author of the The Python Coding Book (you can ask Google for a "python book" and you'll find this book as one of the first entries) and I have taught Python to individuals and corporations around the world.

And I'm approachable. You can ask me questions and I'll always reply, whether here on social media or anywhere else you can find me!

Who this course is for:

  • Students who are ready to move on to the next stage of their Python learning, who have, perhaps, struggled in the past to understand OOP