comment a whole section in python code example

Example 1: how to make a comment python

# You use a hastag at the beginning of the line to make anything after it a comment
'''
You can also make a multi line comment
With three single quotes at the beginning and end!
'''

Example 2: how to make a comment in python

#Use a hash

Example 3: 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.
'''

Example 4: big comments python

# One line Comment
myvar = 5 # Can also start after any chunk of code

"""
Big multiple lines comment
So many lines
WoW
"""

Example 5: comment sections of code python

For editing in VSCode, highlight code block, then: Edit>>Toggle Line Comment