Level 2 : Are docstrings mandatory in Python?

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