The web browser you are using is out of date, please upgrade.

  • Skip to content
  • Select language
  • Skip to search

OpenClassrooms becomes an accredited US university.

Discover what this means for you
OpenClassrooms.comOpenClassrooms.com
Our training programs
Online and at your own pace.
Compare our training programs
Learn a profession
Degree programs
Acquire in-demand skills with real-world projects and one-to-one mentoring.
Discover a topic
Free-access courses
Broaden your knowledge with 500+ regularly updated courses
For employers
Train and recruit talents through an all-in-one space.
Discover our solution
Upskilling & reskilling
Enhance your knowledge
with a library of 500+ self-guided courses - SPARK
Promote hard and soft skills
with mentor-led intensive programs - BOOST
Support career progression
with mentor-led training programs - PIVOT
Learn Programming With Python

Table of contents

  • Part 1

    Write Methods and Classes Using Python

    • 1

      Get the Most Out of This Course

    • 2

      Install your Python environment

    • 3

      Discover Object-Oriented Programming for Python

    • 4

      Write a Python Class

    • 5

      Create Python Objects

    • Quiz: Write Methods and Classes Using Python

  • Part 2

    Use Inheritance Behavior in a Python Program

    • 1

      Apply Inheritance in Python Code

    • 2

      Write a Subclass in Python

    • 3

      Override Methods in Python

    • 4

      Use Inheritance Hierarchies and Multiple Inheritance in Python

    • 5

      Use Python Objects in Collections

    • Quiz: Use Inheritance Behavior in a Python Program

  • Part 3

    Structure Your Code in a Python Program

    • 1

      Divide Your Python Code Using Modules and Classes

    • 2

      Break Down an Object-Oriented Programming Problem in Python

    • 3

      Manage Exceptions in Python

    • Quiz: Structure Your Code in a Python Program

  • Part 4

    Congratulations!

    • 1

      Course Summary

Structure Your Code in a Python Program

Test your knowledge!

Create an account for free or log in to take this course and complete this quiz.
Create an accountLog in

Question 1

Question 2