Python Jumpstart by Building 10 Apps Transcripts
Chapter: App 4: Journal app and file I/O
Lecture: Core concept: Docstrings

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Docstrings are a core concept of this application, let's look at it in detail. So here we have some method,
0:06 and we saw that if you just put a string at the beginning of a method on its own line without assigning it to a variable, that becomes the docstring.
0:15 The recommendation is to use three double quotes and separate this so it's nice and readable onto new lines
0:21 we saw that there is actually a format to talk about the various parameters as well as the return value.


Talk Python's Mastodon Michael Kennedy's Mastodon