xxxxxxxxxx
# Comment on a single line
name = "Pied Piper" # Comment after code
xxxxxxxxxx
"""
This is a string written over
more than one line
"""
print("Hello, World!")
xxxxxxxxxx
Example of Single-line comment in Python
# This is a single line comment example
print("Hello World")
xxxxxxxxxx
Multi-line comments Example
# This is how we can acheive
# Multi-line comments in Python
print("Hello World")
xxxxxxxxxx
Python Inline comments
print("Hello World") # This is a example of inline comment
xxxxxxxxxx
#This line is a comment it will be ignored
print('Hello, World!') # This statement prints Hello, World! to the console
xxxxxxxxxx
# This is a comment written over
# more than one line
print("Hello, World!")