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