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