Level 1 : What type of inheritance is illustrated in the following Python code?


class A():
    pass
class B(A):
    pass
class C(B):
    pass

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