Calling functions by array index in Python
tl;dr: Write an out(n) function rather than out1(), out2(), …, outN() and don’t bother with this hack. I cannot imagine a reasonable scenario where this question would come up in practice. Please reconsider the architecture of the problem; there is likely to be a much better way to do this (because storing them in a … Read more