Comments are explanatory notes within your code. They are ignored by the Python interpreter and serve to make your code more understandable for yourself and others.
Use the #
symbol to add a comment on a single line. Everything after the #
is treated as a comment.
While Python doesn't have a specific syntax for multi-line comments like /* ... */ in other languages, triple quotes ''' '''
or """ """
can be used for creating what are commonly called documentation comments/strings. They define the purpose or expectations for a module/function and are especially valuable as they can become embedded documentation and also be extracted for publishing or reference as documentation external to your program, offering extended comments not intended solely to provide a summary of program content itself