xxxxxxxxxx
# Select the lines and then press:
Pycharm - CTRL + / - comment / uncomment
Eclipse - CTRL + /- comment / uncomment
Sublime - CTRL + /- comment / uncomment
Atom - CTRL + /- comment / uncomment
IDLE - CTRL + ALT + 3 - comment, CTRL + ALT + 4 - uncomment
Notepad++ - CTRL + Q - comment / uncomment
vim - CTRL + Q / kbd>CTRL + V - comment / uncomment
VS Code - CTRL + / - comment / uncomment
xxxxxxxxxx
#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.
'''
xxxxxxxxxx
'''
This is a comment
And this is another comment
'''
# This is an un-commented line of code
x = 10
'''
This is a comment block,
spanning multiple lines,
that has been implemented to comment out multiple lines of code.
'''
# This is another un-commented line of code
y = 20
xxxxxxxxxx
# Multi-line comment select the lines to be commented.
Ctrl + 4.
# Unblock Multi-line comment.
Ctrl + 5.