Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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
Comment

how to make a comment python

# You use a hastag at the beginning of the line to make anything after it a comment
'''
You can also make a multi line comment
With three single quotes at the beginning and end!
'''
Comment

python comment

# This is a comment

""" This is a comment"""

"""
This is a comment
Also this is a comment
"""
Comment

python comment block

"""
this 
is
a multiline 
comment
"""
Comment

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 """
Comment

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
Comment

python comment

# To make a Python Comment just use # and type.
""" 
For Multi-Line Comments
Use Three """
"""
Comment

Python Comment

#I am a comment that does not show
print("Hello world!")
Comment

python comments

#this is a comment. use comments to remember code. put them in your code.
#it looks like buzy work. but you will be suprised how often you reread your code

# this is the comment you can copy
Comment

comment in python

# single line : add # 

""" 
The recommended method for commenting multiple lines is using # on each line.
The (“””) method isn’t actually a comment but defines a Text constant
of the text between the (“””).
It isn’t displayed, but exists and could potentially cause unexpected errors.
""" 
 
Comment

python comment

# Single line Comment

"""
	(''' single quotes ''') will also work
	Multi Line
	Comment
"""
Comment

python comments

"""
This is a 
multiline comment
"""

'''
single quote
multiline comment
'''

# this is a single line comment

#function documentation comment
def get_message():
   """
   function comment example
   :return: "Hello World"
   """
  
   return "Hello world"
Comment

python comment

# This line is cemmented out
Comment

python comments

#A single line comment, also known as an end of line comment.

"""This is a longer 
  multiline comment.
"""
Comment

comment in python

    # To make a comment in python use the hashtag symbol
Comment

how to make a comment in py

A comment in python can be made using the "#" symbol.
Comment

how to make a comment in python

#Use a hash
Comment

Python comment

# This is a single line comment

"""
This is a multi-line comment, 
which is also highlighted
"""
Comment

python comments

# this is a python comment
Comment

how to make a comment in python

#Single Line Comments!
"""
multiline
comments
!
"""
Comment

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

comment in python

#this is a comment
'''
this
is
a
multiline
comment
'''
Comment

how to comment python

# This is a comment
'''
This is a
MULTI LINE comment!
'''
Comment

pyhton comment

#This is a comment
#And another one
print("Hello !)  #Comment in the same line
      
"""
A multiline
comment
"""
print("Hello !)
Comment

python comments

#This is a comment
Comment

python comment

# this is a single line comment
""" this
is a multi line comment """
Comment

python comment

# this is a single line comment
""" this is a 
multi line comment """
Comment

comments in python

# Comment
'''
A
Multiline
comment
'''
Comment

python comment

Use # for single line comment asshole .
Comment

python comment

# Single Line Comment.
'''
Multiple Line Comment.
There's no Multiple Line Comment in python.
Use string tag to comment.
Three single quote at the start and the end.
'''
Comment

Example of Python Inline comments

Python Inline comments
print("Hello World") # This is a example of inline comment
Comment

comment in python

# Single line Comment
"""
Multiline
comment
in python 
programming !
"""
Comment

how to comment in python

'''This the multi line comment in python''' """(Double quote also work)"""
# This is the single line comment in python
Comment

Python comment block

# This is
# a python block comment
# created by starting each line
# with the pound sign
print ('This section is not a python block comment')
Comment

Python comment block

"""
This is a
Python multi-line Docstring
which can also be used
to create a python block comment
Just like this one
"""
print ('This section is not a python block comment')
Comment

python comments

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

PREVIOUS NEXT
Code Example
Python :: pandas filter with given value 
Python :: outliers removal 
Python :: split data train, test by id python 
Python :: get name of variable python 
Python :: softmax function python 
Python :: # How to Prints the current working directory in python 
Python :: how to make a string case insensitive in python 
Python :: matplotlib boxplot colors 
Python :: async sleep python 
Python :: flask port 
Python :: python scheduling 
Python :: seaborn correlation heatmap 
Python :: How to select rows in a DataFrame between two values, in Python Pandas? 
Python :: python get file name 
Python :: how to remove all 2 in a list python 
Python :: how to play mp3 files using vlc python library 
Python :: python parallel processing for loop 
Python :: python remove characters from end of string 
Python :: TypeError: expected string or bytes-like object site:stackoverflow.com 
Python :: send telegram bot message python 
Python :: split string in python 
Python :: count number of each item in list python 
Python :: python relative file path doesnt work 
Python :: matplotlib point labels 
Python :: send message from server to client python 
Python :: python foreach list 
Python :: python how to get the folder name of a file 
Python :: get the length of an array python 
Python :: python lists as dataframe rows 
Python :: python get the length of a list 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =