Level 2 : Are docstrings mandatory in Python?

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