Python Clean Coding


Updated on

Course overview

Course type
Paid course
2 hours
19 lessons
Available on completion
Course author
Packt Publishing
  • Practical examples and case studies to demonstrate effective coding
  • Set up a programming environment that encourages beautiful code
  • How to take full advantage of Python features to make your code elegant
  • Master available tools and modules to improve the cleanliness of your Python code
  • General stylistic guidelines to make your code readable, maintainable, and extendable
  • How to program in different stylistic paradigms for maximum code cleanliness depending on the application
  • How to identify and rewrite bad code


Discover simple practices for writing clean and efficient Python code

Even bad code can function. But if code isn't clean, it can bring a development organization to its knees. Every year, countless hours and significant resources are lost because of poorly written code. But it doesn't have to be that way.

Peter Fisher will teach you Python features that are applicable to writing clean code. First, we will talk about the pros and cons that confront the programmer when trying to write clean Python code. Then, we will explore the structure of a Python program and highlight features that will help us clean up and simplify our code. We will explore some good editors with built-in code analysis and linters to help guide you. We will also talk about some very helpful modules that will keep your code clean and prevent you from reinventing the wheel. Then, we will discuss some general code cleaning guidelines that aren't exclusively applicable to Python, including naming conventions and programming styles.

Finally, we will apply what we've learned in the previous videos to rewriting and reorganizing real-world Python programs into clean and beautiful code that can be more easily understood, debugged, and extended.

This course uses Python 3.6 while not the latest version available, it provides relevant and informative content for legacy users of Python.

About the Author

Peter Fisher is a freelance web and mobile app developer, speaker, author, and member of the British Computer Society. He's the host of the How To Code Well podcast and YouTube channel, where he posts weekly programming tutorials and talks on web development and other subjects.

Similar courses

Python Clean Coding
  • English language

  • Recommended provider

  • Certificate available