Creation of composable object in python
How to extend the definition of the composable object to allow it to be raised to positive integer powers. For the purposes of this we can assume that f^2 is the same as f*f, f^3 is the same as f*f*f, and so on. So (f^3)(x) is f(f(f(x))). If the argument is not an integer, the method should raise a TypeError exception, and a ValueError if its value is non-positive

Regards,
Sandhya

Creation of composable object in python
===

How to extend the definition of the composable object to allow it to be raised to positive integer powers. For the purposes of this we can assume that f^2 is the same as f*f, f^3 is the same as f*f*f, and so on. So (f^3)(x) is f(f(f(x))). If the argument is not an integer, the method should raise a TypeError exception, and a ValueError if its value is non-positive

Regards,
Sandhya
