Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python comment multiple lines

#There is no way to comment multiple lines in Python.
#You just keep using "#" symbol to comment each line out.

'''
Technically you could also use triple single quotation
marks like so, but this formatting does not count
as "true" source code comments that are removed by
a Python parser.
'''
 
PREVIOUS NEXT
Tagged: #python #comment #multiple #lines
ADD COMMENT
Topic
Name
9+7 =