python comments

# this is a comment
# Python ignores comments,
something = 1  # and you can place them after any line of code

"""If you don't want to write a comments using hashtags,
you can put them in a multi-line comment block.
However, if you put hashtags in strings, they do not
create comments.
"""
# comments serve as notes to the programmers
# you can write whatever you want in comments

4.25
4
A nurse 95 points

                                    #This is a single line Comment
print("Hello, World!")
"""
python is easy and good
And this is a multiline comment
"""

4.25 (4 Votes)
0
0
1

                                    # this is a single line comment, python ignores these
foo = "bar" # can be placed after code

"""
python doesnt have multiline comments
so multiline strings do the tricks

this works because python ignores string literals that arentassigned to a varaible
"""

# comments can be used as notes for the dude editing the script

0
0
3.83
6
Koogly 85 points

                                    # 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

3.83 (6 Votes)
0
4.5
2
EMN 85 points

                                    # 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!

4.5 (2 Votes)
0
3.25
4

                                    # this is a python comment

3.25 (4 Votes)
0
0
0
Danny Ray 95 points

                                    #This is a comment

0
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
comment out in python how to comment something on python long comments in python commenti in python python comments for functions python how to comment functions commenting python functions python comment section comments in def top python how to do comment in the python python write comments different ways of commenting python python function standard comments python def comments How to handle comments python python # comment how to write function comments python python code comments single comment in python python function comments python adding comments to function how ot add comments in python python online comment Which one represents the correct python code for comments? section comment python how to use comments in python statement and comments in python how to write a comment in python python how to comment print with comments python structure python comments types of comments python how to create a comment in python python comments type python how is a comment created comment in python 3 python comment in-line how to properly add comments on function in Python python comments showing write comments in python python comment line comment code in python better comments for python python comment usage how to make comments on python python comments documentation commenting python code comment line python program make comments py comment out python code py comments python commenting functions how to comment python code code comments python best way comment in python best way comment inn python best way comment on python comments int python how to give comments in python python commentg commenting out python open with python comment What is the correct way to comment is Python how is a comment created in python need of comment in python how to add comments in pyton comments iin python how to write comment in python Which symbol is used in Python to create a comment? python method comments python code comment python comment documentation writing comments in python python functions with comments coment python What are comments and how can you add comments in Python? comments analysis python how to commenting in python putting comment in python python function description comment python # type comments how to comment code python better comments for python how to use comment documentation python phyton comments comments content in python file python module comments comment python code comentar python python coment lin comments for python methos comment a section in python how to type comments in python how comments are written in python how are comments used in python lines comment python python function info comment how to type a comment in python how to add the comment in python code python get code comments comments in python files how to do comments in python comment string python good comments in python python commenting code make comments in ptyhon python ''' comment make comment in python how can comment in python comment section python python comment block how to write good comments in code python comments about python python comment function how to make comments in python for entire python python commenting how to add a comment in python comment for python how to write comments in python how to insert comments "python" For comments in Python, we use print comments in python block comments in python good commenting python python paragraph comments comment lines python document comment in python documentation comment in python comments python 3 add comment to python function how to document/comment code in python python how to make a comment python comments of function python comments reference to line python doc comments block of comments in python best python function comments comments in pythoin how to create comments in python python better comments add comments to python function python3 comments comment block python comments in python charm How comments are useful in programming? Write example for python Comments commenting in python how to make comments python why are comments used in python python comment all code comment function python comment functions python comment in string python how to make comments in python writing python comments comment out python how to comment python methods comment in python python description comment python block comments python comments funny comment for function in python comment out python section comment in function python coments in python comments for function python python commentation get detailed comments in python comment python python code comments documentation python function comment comments python python types of comments comments in python python 3 comments python comment code comments for a python page comments in python code python import comments python comment out how to do help comment on function on python python documentation comments comments in pytohn python line commenting how to comment in python comment line python types of comments in python python comment comment in python python % comment python %% comment python #%% comment comment command in python comments in python 3 python comment linee python comentary python coments standard python comments Python funcion comments python comments framework ppython comments python commenting standard add python comments how to comment on python how to make good comments python pyhton comments python omment how to add a cmment in python python : comment comments in python 2 how to do comment in python python comment """ python how make comment how to comment in python language how to put comment in python python explanation comment coment line in python How to add single-line comment in Python? commenting paragraph in python python mark code as comment make comments on python pyhton code step by step comments comment a line in python comment types in python school comeent in python python function commenting python multi line comment multi lines comment with /* multi-line comments python multi-line comments How do you write comments in python? python 3 comment how to write comments in pytthiobn how to give comment in python how to do multi line comment in python python print comments multiline comments in python python code comment multiple lines how to do multiline comment in python comments in poython python multiple line comment multi line comment in python python comment multi line mark an comment out code pyhton multi-line comment in python how to comment multiple lines in python multiple line comment in python commenting multiple lines in python multi line comment python python commentss syntax for single line comment in python how to comment line in python comment long python comment python python comment all simple code writing sryle in python with comments comment in python' python comments python docs how to comment a line in python coment in python how to comment program in python commentng in python python xcomment python commented line how to do python comments python notes code describe variable in comment python correct way to commet code python comments for python in html comment symbol in python print with comment python how to coment in python how to auto commer text python commnet code in python comments inpython python what is commentinf how to do python commenting python line comment how to type comments in python code how to make comment in python how to comment out in pyto '''' python comments python modules comments get python comment how to type comment in python language what is the used for commenting in python notes in python symbol coomnet in python how do you put notes on a python code in html python3 comment python comment style add comments to python code python comment5s comment {} python notes in python comment son python how to put comments in python remove all comment from python file online how long to make comment lines in python how to make a comment in python comment in python using // how to add comments on python what is a python comment python file comment python make comment how to add comments in python comment to code in python add comments in python how to add comment in python python comment syntax comment python comment cooments in python comments in ython comments in phyton python commeting scomment in python python coment how do we write comment in python comment lines in python line comment in python comments in pyhton comment line in python Identify the style that the python paragraph comment uses. how to make commen to a class in python comments on python comment on python what are the ways of writing comment in python what are comments in python python comment structure python proper way to comment functions python comments
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source