Level 10 : What is the use of duck typing?

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