Docstrings | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Docstrings

Is there somebody who can give very simple example to understand "Docstrings" function in Python 3? What is the different between "Comment", # and "Docstrings", """?

30th Jul 2019, 3:56 PM
May Thazin Nyein
May Thazin Nyein - avatar
2 Answers
+ 6
# affects only one line. ''' ''' acts on all text in quotes, regardless of the number of lines
30th Jul 2019, 4:00 PM
Mikhail Gorchanyuk
Mikhail Gorchanyuk - avatar
30th Jul 2019, 4:26 PM
Gwlanbzh
Gwlanbzh - avatar