How create a function to resolve binomial to n-power?

Welcome to the community!

What do you mean it doesn't work? If you run exercise(10) on console after defining as it is, does it fail for you?


As far as I can tell, your question doesn't violate homework policy of this community. But still, please be familiar with it.