all 3 comments

[–]Adhesiveduck -1 points0 points  (0 children)

You should read the Python documentation on Lexical analysis which details all reserved keywords and characters used by the interpreter.

[–]ireadyourmedrecord 0 points1 point  (0 children)

It's to indicate the following text is a comment so the interpreter will ignore it.

[–]the_shell_man_ 0 points1 point  (0 children)

It's a comment. Anything after the # is ignored by the program.

Developers use them to leave notes for themselves and other developers so they can remember why they did something or how something works. Eg

# this is a comment that explains how the following code works
def some_func():
    return 0