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
Write Maintainable Python Code

Table of contents

  • Part 1

    Write Clear Code Using PEP 8 Guidelines

    • 1

      Write Python Code That Explains Itself

    • 2

      Write Python Code That’s Easy to Read

    • 3

      Write Bug-Repellent Python Code

    • 4

      Use Linters to Keep Your Code Tidy

    • Quiz: Apply the PEP 8 Style Guide to Python Code

  • Part 2

    Solve Common Programming Problems With Design Patterns in Python

    • 1

      Build Complex Systems With the Help of Design Patterns

    • 2

      Avoid Confusion With the Constant Design Pattern

    • 3

      Create Flexible Functions With the Decorator Design Pattern

    • 4

      Structure an Application With the MVC Design Pattern

    • 5

      Implement the Model for Your Application

    • 6

      Implement the Controller and View for Your Application

    • Quiz: Solve Common Programming Problems With Design Patterns in Python

  • Part 3

    Apply the SOLID Principles to Python Code

    • 1

      Discover Good Programming Practices With the SOLID Principles

    • 2

      "S" for the Single Responsibility Principle

    • 3

      "O" for the Open/Closed Principle

    • 4

      "L" for the Liskov Substitution Principle

    • 5

      "I" for the Interface Segregation Principle

    • 6

      "D" for the Dependency Inversion Principle

    • 7

      Avoid STUPID Practices in Programming

    • Quiz: Apply the SOLID Design Principles to Python Code

  • Part 4

    Congratulations!

    • 1

      Course Summary

Apply the SOLID Design Principles to Python Code

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