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

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