how to comment out few lines in python code example
Example 1: python comment multiple lines
'''
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.
'''
Example 2: python big comment
"""
3 quote marks is technically
a docstring, but it works as
a multi line comment
"""
and 'Alt 4' to uncomment
if False:
print('Hello')
you can technically put if False around code you dont want it to run,
but that would mean it has to have correct syntax,
and would not be good for readability.
Example 3: comment out a block in python
select the lines you want to comment
and 'use Ctrl + / to comment all of the selected text'.
To uncomment do the same thing.
OR
put a '#' before each line
eg :
Example 4: multiline comment in python
'''
Like This
But only for Python
As far as i know
'''