What is docstring in Python?

Last updated 3 years, 1 month ago | 1225 views 75     5

Tags:- Python

Python | Docstring 

  • A documentation string or docstring is a multiline string used to document a specific code segment.
  • The docstring should describe what the function or method does.