Hi,
I wonder if we can do that in python, let's suppose we have 3 differents functions to processing datas like this:
def main():
def process(data):
.....
def process1(data):
.....
def process2(data):
.....
def run():
test = choice([process,process1,process2])
test(data)
run()
main()
Can we choice one random function to process the data ? If yes, is this a good way to do so ?
Thanks !