Answers for "how to comment block of code in python"

9

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
Posted by: Guest on May-05-2020
5

how to comment python

# This is a comment
'''
This is a
MULTI LINE comment!
'''
Posted by: Guest on September-06-2020
-2

comment sections of code python

For editing in VSCode, highlight code block, then: Edit>>Toggle Line Comment
Posted by: Guest on February-25-2021

Code answers related to "how to comment block of code in python"

Python Answers by Framework

Browse Popular Code Answers by Language