I've encountered a need to implement multiple conditions, which in other languages I would implement using a switch-case construct.
In Python, I have to write everything using if-elif-else conditions. This seems quite inconvenient to me.
Is there a more convenient way to write such conditions?
For example, I have units of measurement and depending on the selected one, I need to return the corresponding multiplier:
def get_multiplier(unit):
if unit ==