Python Land
Published in

Python Land

How Not To Write Python Comments

Tips to improve the way you write and use comments

Image © by author

A Python comment is an explanation in the source code of a Python program. It doesn’t do anything besides being informative and is ignored by the Python interpreter. In this article, you will learn:

  • what Python comments are,
  • how to add comments to your Python code,

--

--

--

Python articles for all types of programmers, from beginner to expert, from DevOps to Data Scientists

Recommended from Medium

chris gayle https://t.co/Od95VlmWa1 https://t.co/2wTSAgo4uQ

How to Write a Good Test Case

My Journey to Learning Data Structures from Scratch — DeQue

ElasticSearch as the primary database

Rescheduling a Lambda when target data outside of AWS isn’t currently available

My reading system in Notion

TOP FRAMEWORKS FOR SERVERLESS APPLICATIONS DEVELOPMENT

Writing a crude ransomware in under 40 lines

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Erik van Baaren

Erik van Baaren

Software developer by day, writer at night. Owner of https://python.land. Subscribe to Medium to read all my articles and those of other writers.

More from Medium

8 Built-in Functions Every Python Programmer Should Know

7 Lesser-Known Python Tips to Write Elegant Code

Things You Didn’t Know About Python Dictionaries

3 Tips For Writing Pythonic Code