[Tutor] Calculate 4**9 without using **, was Re: QUESTION
D.V.N.Sarma డి.వి.ఎన్.శర్మ
dvnsarma at gmail.com
Sat Mar 4 05:23:44 EST 2017
Much simpler is
4*4*4*4*4*4*4*4*4
regards,
Sarma.
On Sat, Mar 4, 2017 at 2:20 PM, Peter Otten <__peter__ at web.de> wrote:
> Tasha Burman wrote:
>
> > Hello python tutors,
> > I am having difficulty with a power function; what is another way I can
> do
> > 4**9 without using **? Thanks,
>
> Hello Tasha,
>
> "what is another way I can do 4**9 without using **?"
>
> sounds a lot like a homework question -- so you really have to think about
> it yourself a bit. A few hints:
>
> How would you do the calculation with pen and paper?
>
> Can you translate that into a Python loop? What kind of loop would you
> choose to repeat something 9 times?
>
> If you are still having difficulties come back here and show us the code
> you
> have tried, even if it doesn't work yet.
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
More information about the Tutor
mailing list