Answers for "how to comment many lines in python"

11

python comment multiple lines

#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.
'''
Posted by: Guest on November-17-2019
15

python multiline comment

#%% There are not multiline comments in python,
# this # is the only form of commenting but, people use
# """triple quotes""" for multiline commenting but this
# is actually a String the interpreter will read and 
# will ocupy memory. If you dont put this kind of string
# into a variable it will be collected on execution
Posted by: Guest on July-23-2020
14

python multiline comment

def increase_salary(sal,rating,percentage):
    """ increase salary base on rating and percentage
    rating 1 - 2 no increase
    rating 3 - 4 increase 5%
    rating 4 - 6 increase 10%
 
    """
Posted by: Guest on May-15-2020
4

python multi comment

"""Put comments inside triple quotes"""
Posted by: Guest on May-13-2020
1

multiple comment line in python

'''
This is a multiline
comment.
'''
Posted by: Guest on April-24-2020
0

how to comment many lines in python

def windows():
	print('Select the text, Press CTRL + K , C to comment')

 def mac():
	print('Multi-line comment select the lines to be commented. Ctrl + 4.')
Posted by: Guest on March-11-2021

Code answers related to "how to comment many lines in python"

Python Answers by Framework

Browse Popular Code Answers by Language