Python3 Comments
Make sure to use the correct style for modules, functions, methods and inline comments.
There are single-line comments and multi-line comments in Python:
Single-line comments in Python begin with # , for example:
# This is a comment print("Hello, World!")
Multi-line comments with three single quotes ''' or three double quotes """ , they should enclose the comments, for example:
1. Single quotation mark (''')
#!/usr/bin/python3 ''' This is a multi-line comment, with three single quotes This is a multi-line comment, with three single quotes This is a multi-line comment, with three single quotes This is a multi-line comment, with three single quotes This is a multi-line comment, with three single quotes ''' print("Hello, World!")
2. Double quotes (""")
#!/usr/bin/python3 """ This is a multi-line comment, with three double quotes This is a multi-line comment, with three double quotes This is a multi-line comment, with three double quotes This is a multi-line comment, with three double quotes This is a multi-line comment, with three double quotes """ print("Hello, World!")