Answers for "best way comment 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
4

python comment

# Single line Comment

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

comments in python

# This is a comment
Posted by: Guest on July-04-2020

Code answers related to "best way comment in python"

Python Answers by Framework

Browse Popular Code Answers by Language