Level 9 : Does Python have a Switch or Case statement like in C?

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