Skip to main content

Python implementation of Switch-Case

Project description


``SwitchCaseDev`` is a command in python command which is similar to switch-case in java and python.
It is also a implementation of a simple Switch-Case in Python.

Basic Usage:

Basic Syntax:
.. code :: python

case_list -> a dictionary item , it contains the dictionary of all the case in which switch will be applied
default_value -> it is the default value which will excute if any of the given case is not applied.

Basic Syntax:
.. code :: python

value -> the case the need to be applied.

Example :
.. code-block::python
import Switch_Case


Note: All name I tried are unavailable so I switch the name to SwitchCaseDev.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for SwitchCaseDev, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size SwitchCaseDev-0.1-py3-none-any.whl (1.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size SwitchCaseDev-0.1.tar.gz (1.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page