Level 10 : What is the use of duck typing?

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