The importance of comments in Python

Extend it

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

Below is come code that should all be commented out

Press Ctrl + Enter  to run the code.

Challenges:

Read the and work through challenges at the bottom of the code to plan out how you would draw an alien. You don’t need to write any code – just add comments.

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