Level 10 : What is the use of duck typing?

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