[Tutor] Calculate 4**9 without using **

Steven D'Aprano steve at pearwood.info
Sat Mar 4 22:02:26 EST 2017

On Sat, Mar 04, 2017 at 06:07:23PM -0800, Alex Kleider wrote:
> On 2017-03-04 08:17, Sri Kavi wrote:
> >I'm a beginner learning to program with Python. I'm trying to explain a
> >solution in plain English. Please correct me if I'm wrong.
> >Create a function that takes base and exponent as arguments.
> Is seems that you are facing the same problem as Tasha Burman.

I think you are misunderstanding Sri Kavi's answer. I think that Sri is 
trying to answer Tasha's question without providing actual working code. 
This is homework, and Tasha should write the code herself. But Sri has 
given a description of the algorithm to use.


More information about the Tutor mailing list