0
What is the difference between docstrings and comments? The example in a lesson doesn't explains it very well.
docstrings vs. comments
2 Answers
+ 2
docstings are for people, who want to use your code without wanting to know how its works. docstrings can be turned into actual documentation.
And Comments, as name suggests it shows you whatever is going on with your code(in a statement , loop, etc).
0
that's the part w/ docstrings i dont get. how a docstring can be turned into a documentation? why? can you give me an example?