Module 2: Python Basics - Data Types, Variables, I/O, and Operators
Comments
Comments are notes in your code that are ignored by the Python interpreter. They are used to explain code or make it more readable.
- Single-line comments start with
#
:# This is a comment
- Multi-line comments (docstrings) are often enclosed in triple quotes (
"""..."""
or'''...'''
), typically used for function/class documentation.