how to comment out blocks of code python code example
Example 1: 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 2: comment sections of code python
For editing in VSCode, highlight code block, then: Edit>>Toggle Line Comment