# switchlang > Adds switch blocks to the Python language. ## Docs ### API Reference #### The switch block > The context manager that gives Python an explicit switch statement. Use it in a `with` block, register cases, then read `result`. - [switch](https://mkennedy.codes/docs/python-switch/reference/switch.html): An explicit switch statement for Python, implemented as a context manager #### Range helpers > Helpers for mapping ranges of values to a single case. - [closed_range](https://mkennedy.codes/docs/python-switch/reference/closed_range.html): Create a closed range for a case: both `start` and `stop` are included