Difference between comments in python # and """ -
starting program in python, see scripts comments using #
, """ comments """
find out difference between these 2 ways comment.
best thing read https://www.python.org/dev/peps/pep-0008/, since longish, here 3 liner:
- comments start # , not part of code.
- string (delimited """ """) called
docstring
, used on special places defined purposes (briefely: first thing in module or function describing module or function) , accessible in code (so part of program, not comment).
Comments
Post a Comment