home PYTHONJAVA
 

Python3 Comment

Make sure you use the right style for modules, functions, methods, and inline comments

Notes in Python have single-line comments and multi-line comments:

Single line comments in Python start with # , for example::

# This is a comment
print("Hello, World!") 

Multiline comments enclose comments with three single quotes ''' or three double quotes """ , for example:

1, single quote (''')

#!/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
'''
    
    
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
"""

print("Hello, World!") 





welookups is optimized for learning.© welookups. 2018 - 2019 All Right Reserved and you agree to have read and accepted our term and condition.