Can a docstring contain multiple line or text? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Can a docstring contain multiple line or text?

If yes then why or if no then why

15th Jul 2020, 8:30 AM
i.am.Abhinav Saxena
i.am.Abhinav Saxena - avatar
3 Antworten
+ 2
Docstring just has to be a string. It can be shaped whichever way.
15th Jul 2020, 8:31 AM
HonFu
HonFu - avatar
+ 2
yes, because what would be useful about a single line docstring for an extensive app? its for explaining how your program works
15th Jul 2020, 8:31 AM
Slick
Slick - avatar
- 1
Good
15th Jul 2020, 8:33 AM
i.am.Abhinav Saxena
i.am.Abhinav Saxena - avatar