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

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