Python Newbie | SoloLearn: Learn to code for FREE!

0

Python Newbie

I am seeing different behaviour of power operator ** in Python. Can someone please help me what am i doing wrong? Please don’t suggest alternative method like pow, enclosing with brackets that i already know. 1.) 2**5**5= 523287....2(942 digit number) However while performing individual expression 2**5=32 32**5=33554432 2.) 5**2**2=625 While performing individual expression 5**2=25 25**2=625 this same as 5**2**2 why 2**5**5 is resulting in different way? Thank you for your assistance

2/12/2020 1:15:00 PM

Viral Patel

4 Answers

New Answer

+2

https://www.sololearn.com/Discuss/2009722/?ref=app

+1

Thanks Mihai

0

You're welcome.

0

this is a very valid question..