+ 5

Would someone mind explaining this better to me?

Unlike conventional comments, docstrings are retained throughout the runtime of the program

24th Jan 2018, 10:43 PM
Daniel
3 Answers
+ 2
You cannot get docstring comment in a file without launching code, that's how i understand it
25th Jan 2018, 12:00 PM
aligejtor
aligejtor - avatar
0
Comments in a code is used to explain what your code will do. Like in the example comment say print “hello world” which means the code in next line gonna v written would print “hello world”
26th Jan 2018, 12:35 PM
Kamal Batth
Kamal Batth - avatar
0
from what I understood, comments don't show when the program is running, as for docstrings will appear and they also can have multiple lines. I'll try it later ;)
24th Apr 2018, 12:39 PM
HĂ©lio Mothci Pereira
HĂ©lio Mothci Pereira - avatar