I want to use function array just like we use it in c/c++ in python.
i have used it in c/c++ but I am new to python. I searched but I didn't find anything like that.
I mean if I pass index to the array as a 0 then function saved at 0 should get executed and if I pass 1 then function at 1 will get executed.
i have used it in c/c++ but I am new to python. I searched but I didn't find anything like that.
I mean if I pass index to the array as a 0 then function saved at 0 should get executed and if I pass 1 then function at 1 will get executed.