You can do this:
getattr(CallMe, variable)()
getattr is a builtin method, it returns the value of the named attributed of object. The value in this case is a method object that you can call with ()
You can do this:
getattr(CallMe, variable)()
getattr is a builtin method, it returns the value of the named attributed of object. The value in this case is a method object that you can call with ()