Python uses the hash symbol (#) to create a comment.
# This is a comment# This program prints a message
print("Hello, World!")Output
Hello, World!
Python does not have a special multi-line comment syntax.
Write # on every line.
# This is a comment
# written in
# multiple lines
print("Hello")Output
Hello
Multiple Comments
Example
"""
Robert John Downey Jr. (born April 4, 1965) is an American actor and producer. His films have grossed over $14.3 billion worldwide, making him one of the highest-grossing actors of all time. He was the world's highest-paid actor from 2013 to 2015. He has received numerous awards, including an Academy Award, a Daytime Emmy Award, three Golden Globe Awards, and two British Academy Film Awards.
"""
print("Robert John Downey Jr.")Output
Robert John Downey Jr.