Introduction to Comments and Docstrings in Python

Beginner
7m 27s
251
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.

About the Author
Students
111,973
Labs
37
Courses
50
Learning paths
58

Ben Lambert is a software engineer and was previously the lead author for DevOps and Microsoft Azure training content at Cloud Academy. His courses and learning paths covered Cloud Ecosystem technologies such as DC/OS, configuration management tools, and containers. As a software engineer, Ben’s experience includes building highly available web and mobile apps. When he’s not building software, he’s hiking, camping, or creating video games.

Covered Topics