Python assign value X if variable V is 1, Y if it is 43,
<p>I have a variable V which takes values { 1, 43, ... } and I would like to assign to variable Z values { X1, X2, ... } based on which exact value V has taken. Example: if V is 1, Z is X1. If V is, unexpectedly, not part of the set of defined values, the behaviour can be "undefined".</p>

<p>Basically, I don't know how to do a switch statement in Python. In the manual, I did not find "switch".</p>
