Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAshley Keeling
11,476 Pointswhat is a doc string ?
i can't remember what a doc string is, could somebody tell me please
1 Answer
Steven Parker
231,275 PointsA 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.