Level 10 : What is the use of duck typing?

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