I want to do functions dispatch, but there is no switch mechanism in python 3. I learn to use dict for instead like below:
def multiply(m,n,o):
return m*n*o
def add(m,n):
return m+n
my_math = { "+":add,
"*":multiply}
However, my functions have different parameters. How do I pass my parameters through my_math[op](...)? Thanks~