Re:What Is the Switch-Case Equivalent in Python?
by earthboundkid on Monday April 05, 2021 @10:41AM
(#26699639)
The example is misconceived to begin with? Why are you hard coding an interactive fiction game in Python? You should make an interactive fiction engine, of which there are already a million examples, and then write the script in a language made for IF, not Python.
[ Parent
| on HN ]
Re:What Is the Switch-Case Equivalent in Python?
by oblvious-earth on Wednesday April 07, 2021 @08:37PM
(#26733597)
I took the example from the PEP itself, feel free to list out a different one.