Level 1 : What is the purpose of the elif statement in Python?

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