Comments are used to tell somebody about your program or as annotations to what each block of code represents and what variable is used for representation. They are written like a hashtag with a hash (also called an octothorpe or pound sign) at the beginning.
A comment is written like this:
#Hello WorldThis is a comment that is used to tell the reader that it is a hello world program. Python, unlike Java or C++, does not have documentation or multi-line comments. So you may have to type in a hashtag each time you write a comment.
Now, do something like this:
#A hello World programprint("Hello World")And see what happens.
This is the input that you will feed in.
The output as I got it.
1. What do you notice about the comment in the "Hello World" program output?
2. Try changing the the comment in the program. Does this make a difference in the program?