Answers for "comment block python"

6

comments in python

#this is commented
'''
this
is
also 
a 
comment
'''
Posted by: Guest on August-25-2020
7

comment in python

# This is a one line comment

"""
This is a comment for multiple lines,
as you can see
"""

""" But also this is valid """
Posted by: Guest on October-05-2020
1

python comments

# Numpy-style python comments for functions
def foo(param_1=True):
  """Example function.

    Parameters
    ----------
    param_1 : bool, optional
        The first parameter (default is True)

    Returns
    -------
    num
        a number
    """
  return -1
Posted by: Guest on April-30-2021
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
4

python comment

# Single line Comment

"""
	(''' single quotes ''') will also work
	Multi Line
	Comment
"""
Posted by: Guest on November-11-2020
3

how to make a comment in python

#Use a hash
Posted by: Guest on September-19-2020

Python Answers by Framework

Browse Popular Code Answers by Language