A03 Comments

Single Line Comments

# Single-line comments in Python
# ------------------------------------------------------------------------------
# A single-line comment in Python starts with a hash symbol (#).

# This code will print a message and the sum of two numbers
print("Hello world!")
print(1 + 1)

Multi Line Comments

# Multi-line comments in Python
# ------------------------------------------------------------------------------
# Multi-line comments in Python can be created using triple quotes.

"""
This is a multi-line comment.

The following code will print the message `Hello, world!`
and then print the sum of two numbers.
"""

print("Hello world!")
print(1 + 1)