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

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