The “pythonic” way to do that is define a dictionary as if a constant (outside your script function if in a script module), with the lookup values as keys and the results as the corresponding content. Then you just return myCasesDictionary[myKeyToLookUp].
If the cases are more dynamic than that, use python’s if...elif...elif...else construct.