how to quickly comment out code python code example
Example 1: how to comment python
# This is a comment
'''
This is a
MULTI LINE comment!
'''
Example 2: 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 : #This is a comment
Example 3: how to put comments in python
# Just put a hash before the comment. This can help other collaborators understand what you are doing, or help you remember the intention of a certain line of code. It should appear gray. Oh - and by the way, the Python computer ignores your comments.