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