comment selected lines 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 all selected lines in python
Select relevant lines to be commented, then use ctrl+/