+ 4
what is the difference between regular comments and docstring in python?
1 ответ
0
regular comment : used for single line
Comments are great for leaving notes for people working on
your program.
docstring : used for multiline comment
Docstrings provide documentation about functions, classes, and
modules.
Use docstrings to teach other developers how to use your program.