Answers for "How to write comment in python"

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
3

comment in python

# To make a comment in python use the hashtag symbol
Posted by: Guest on November-27-2020
5

how to comment python

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

how to make a comment in py

A comment in python can be made using the "#" symbol.
Posted by: Guest on May-31-2021
1

python comments

# This is a single lined comment for Python,
# and can be used at the end of a line of code

"""
For multi-line comments,
use three hashtags! can not go in the end of a line of code.
""" # make sure to close your comment!
Posted by: Guest on October-04-2020

Code answers related to "How to write comment in python"

Python Answers by Framework

Browse Popular Code Answers by Language