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