How to call multiple functions based on the input values. We can implement this with dictionary without using if-else by below:
def fun1(a, b, c) :
....
def fun2() :
....
def fun3() :
.....
dict{1 : fun1,
2 : fun2,
3 : fun3}
dict[1](input arguments)
But if the input parameters of different functions are different how can we pass input parameters without if-else. The idea of this approach is to avoid conditions and directly call functions based on input values.
**kwargsfor example)?