I have some predefined functions with me, like : addhost, edithost, deletehost.
Now based on some param received, I have to call one of the above functions. Now the value of param is same as one of the above functions.The type of param is str.
For Example: If param is 'addhost', then I should be able to call addhost().
But when I do it directly, It gives me the error as 'str' object is not callable
How should I call the appropriate function based on param received ??
P.S. I dont want to use conditionals, I only want to go with something like lambda functions.