I\'m developing a bot on Python (2.7, 3.4). I defined a about 30+ dynamic functions which to be used based on bot commands. While development, since not all functions are done,
Yes, it is possible, and it is even possible to store them in lists using loops. For instance:
l = [] for i in range(10): l.append(lambda: None)
And you can reference any of them through indices like l[index]()
l[index]()
For example:
c_events = 0 c_about = 1 l[c_events]()