Level 10 : What is the use of duck typing?

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