guacamole

@guac · 6 months ago

What is the Switch-Case Equivalent in Python? https://pakstech.com/blog/python-switch-case/

https://www.pakstech.com/blog/python-switch-case/

pakstech.com

published 3/6/2021

summary

Historically, the Python syntax hasn't had a switch-case statement. In 2006 Guido van Rossum, the original author of Python, proposed different alternatives for the switch-case syntax in PEP 3103 but they all seemed to have some problems and the idea didn't gain enough popular support. The proposal was therefore rejected. Python version 3.10 changes this.