The importance of comments in Python

Try it:

Comments in Python
Comments in python: make code easier to read and maintain

Below is come code that draws a red square

Press Ctrl + Enter  to run the code.

Challenges:

Read the comments at the end of the code and work through the challenges.

On the next page you’ll get some code with both syntax and logic errors for your to debug

Page 1: Intro

Page 2: The theory: learn what you need to know as fast as possible.

Page 3: Try it: try out and adapt some working python code snippets.

Page 4: Debug it: Learn how to find and fix common mistakes.

Page 5: Extend it: Choose a project idea to use your newfound python skills.

Leave a Reply