Q:

multiple comment line in python

#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.
'''
6
"""Put comments inside triple quotes"""
2
'''
This is a multiline
comment.
'''
0

New to Communities?

Join the community