Answers for "write comments in python"

1

python comments

# 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
Posted by: Guest on May-03-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
0

python comments

#This is a single line Comment
print("Hello, World!")
"""
python is easy and good
And this is a multiline comment
"""
Posted by: Guest on June-28-2021

Code answers related to "write comments in python"

Python Answers by Framework

Browse Popular Code Answers by Language