I\'m looking for a better way to call functions based on a variable in Python vs using if/else statements like below. Each status code has a corresponding function
I encountered the same problem previously. Have a look at this question, I think its what you are looking for.
Dictionary or If Statements
Hope this is helpful
Eef