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

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