Level 9 : What is the purpose of a docstring in Python?

Author: bhavani | Tags: docstring | 1859+ Python FAQs | Share
swapping | string-method | shallow-copy | single-inheritance | strings | syntax-error | working-with-dates-and-times | stack | recurssion | string-manipulation | tuples | string | thread-safe-data-structures-(queue.queue) | thread-synchronization | regular-expressions | string-method | set | using-the-threading-module | list-method | while-loops | rollback | sets | split | tuple-unpacking | operator-or | staticmethod | list-methods-and-slicing | multiple-inheritance | set-operation | using-os-and-pathlib-modules | operand | name-mangling | variable | memory | yield | max-min | zip | software-design | multithreading | using-else-and-finally | objects | string-concatenation | namespace | matrix | overriding-methods | precedence-and-associativity | test-discovery | writing:-write(),-writelines() | string-iteration | postfix | string-slicing | memory-management | string-methods | operators | list-operation | math | indentation | int | mapping-function | list-indexing | pseudocode | list | identifier | python-history | list-mutation | list-comprehensions | classes | center | membership-operators-(in,-not-in) | bitwise | statement | assert | built-in | slice | class-and-inheritance | error-handling | pandas | sum-function | string-formatting | random-function | sum() | map-function | error-handling | iterators | iterable | round-function | regular-expression | choice | boolean-masking | else-statement | functions | collections | __future__ | indexing:-loc-vs-iloc | feature | identity-operators-(is,-is-not) | global-variable | built-in-modules | basic | function-and-scope | complex | encapsulation | async | exponentiation | inherit | control-flow | control-statement | higher-order-function | aggregating-data-with-functools.reduce() | data-type | keyword | boolean-and-non-boolean | gil | lambdas | difference-between-threads-and-processes | import-method | assignment-operator | enumerate() | decorator | intering | datetime.date,-datetime.time,-datetime.datetime | advanced-file-operations | control-flow | format | comprehension | indexing | introduction-to-multiprocessing | frozenset | input-function | encoding | filter-function | conditional-statements | handling-missing-values-(fillna,-dropna) | else | fabs-function | file-handling | goto-function | deep-copy | condition | init | global-variable | global | installation | assignment-operators | conversion | formatting-with-strftime | counter-function | asyncio-module | joining-and-merging-dataframes | data-structures-in-python | comparison | floats | __all__-attribute | generator | def | implementation | call | class | benefit | file_handling | library | collection | list-join | counter | data-structures | generators-in-python | static-method | default-arguments | sorted | invalid-list | sys | print | round | input | id-function | list-comprehension | datetime | debugging | append | constructor | multiple-inheritance | array | sys-module | recursion | head-and-tail | return-statement | conditional-statement | sorting | data-structure | boolean | list-slicing | operator | dictionary-methods | list-vs-tuple | python-syntax-and-structure | syntaxerror | list,-set,-and-dictionary-comprehensions | application | sorting-and-ranking | random | min-function | error | syntax | booleans | method | python-operators | loop-control | raise-statement | multiple-except-blocks | access-modifier | creating-and-starting-threads | file-handling | mathematics | string-slicing | data-types | complex-number | regex | built-in-function | python-django | logical-operators | arithmetic-operation | mathematical-function | expand-tab | arbitrary-arguments-(*args,-**kwargs) | reading:-read(),-readline(),-readlines() | scientific-notation | command-line-parsing | data-type | formal-and-actual-parameter | string-formatting | pass | literal-characters-and-special-characters | logical-operator | method-overloading | mutable | default-mutable-argument | lambda | match | exception | syntax-error | file | anchors-(^,-$) | identity-operator | namedtuple | dictionary | slicing | module | odd-number | working-with-temporary-files-using-tempfile | using-assertions-(assertequal,-assertraises) | lists | working-with-file-paths | context-manager | creating-custom-modules | version | touples | working-with-binary-files-(rb,-wb) | binary-operation | magic-method | using-join()-and-is_alive()-methods | function | polymorphism | logical-operation | type_conversion | compute | loops | datatype | exception-handling | type-conversion | docstring | dataframe-and-series-objects | parsing-with-strptime | version-check | floating-point-precision | loop-control-statements | while-and-for-loop | conditional-statement | class-decorators | filtering-and-indexing | logical-operator | integers | escape-operator | typeerror | matplotlib | input-function | unit-testing | managing-directories-with-os-and-shutil | zip-function | mysql | min-max-function | virtual-environment | type-conversion | with-statement | data-type-conversions | generators | copy | while-else-loop | data-structure | loop | math-copysign | numpy | operator-and | decimal | for | asyncio | lambda-functions | introduction-to-threads | python_version | descriptors | using-lists-as-stacks | identity-operator | range | opening-files-(open()) | global-keyword | precedence | dictionaries | comment | design-principle | introduction-to-python | heap-memory | pep | defining-functions | why-use-multiprocessing-over-threading?-(gil) | using-yield-in-functions | integer | type-conversion-and-casting | lambda-function | key-value-pairs | time-series-with-pandas | oop | overflow | python | pickling--unpickling | dicts | tuple-methods | __init_subclass__ | factorial-function | using-map()-for-transformations | quantifiers-(*,-+,-?,-{}) | package-management | immutable-data-type | reading-and-writing-large-files-efficiently | thread | print-statement | object-attribute | immutability | threading | attribute | list-comprehension | built-in-function | data_structure | filter | tuple | turtle | directory-operations | while-loop | matrix-list-comprehension | functional-programming | operations | parameter | function-argument | bitwise-operator | dictionary-comprehensions | class-and-instance-variable | oops | binary | iterator | destructor | join | python-module | operator-overloading | nested-loop | walking-through-directories-using-os.walk() | virtual-environment | inheritance | bitwise-operator | numeric | class-and-object | update | python-repl | expression | functional-programming | exception-handling | raise | zfill-function | reading-and-writing-files | arithmetic-expression | methods | interpreter | multiprocessing ...