Python Using Databases in Python Our Diary App Switching It Up

Ashley Keeling
Ashley Keeling
11,475 Points

what is a doc string ?

i can't remember what a doc string is, could somebody tell me please

1 Answer

Steven Parker
Steven Parker
167,906 Points

A docstring is a string literal that occurs as the first statement in a module, function, class, or method definition. I don't recall if or where they are discussed in this course, but there's a Docstrings video in the "Write Better Python" course.

You might also take a look at the PEP 257 documentation.