I am trying to call certain functions based on a certain variable. If I have lots of functions based on this variable it quickly gets very ugly with all if statements. My questions is if there is a more elegant and "pythonic" solution than doing something like the code below?
if variable == 0:
    function_0()
elif variable == 1:
    function_1()
elif variable == 2:
    function_2()
 
     
     
    