Introduction to Comments and Docstrings in Python

Difficulty: Beginner
Duration: 7 minutes and 27 seconds
Students: 314
Rating: 5/5

In this lesson, we take an introductory look at Comments and Docstrings in Python. This lesson is part of a series of content designed to help you learn to program with the Python programming language. 

Learning Objectives

  • To create a single line comment we can use the number-sign followed by the comment. 
  • To create a multi-line comment we can use a multi-line string.
  • Docstrings are just multi-line comments used to document certain pieces of code.

Intended Audience

This lesson was designed for first-time developers wanting to learn Python. 

Prerequisites

This is an introductory lesson and doesn’t require any prior programming knowledge.

Covered Topics