Lazo Lab Sign up

Python Projects & Skills / Working like a pro

Lesson 3 of 28

Writing clean code

Clean code is easy to read. Use clear names, short functions that do one thing, and follow PEP 8, Python's style guide.

Key points

  • One job per function
  • Names that explain themselves
  • Tools like black format code for you
Watch a video on thisOpens YouTube search results for “Writing clean code” in a new tab

Quiz · +10 XP

What is PEP 8?

Log in to save progress and earn XP.