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

12th Feb 2020, 1:15 PM
Viral Patel
Viral Patel - avatar
4 Respostas
12th Feb 2020, 1:20 PM
Mihai Apostol
Mihai Apostol - avatar
+ 1
Thanks Mihai
12th Feb 2020, 1:34 PM
Viral Patel
Viral Patel - avatar
0
You're welcome.
12th Feb 2020, 1:37 PM
Mihai Apostol
Mihai Apostol - avatar
0
this is a very valid question..
12th Feb 2020, 1:55 PM
Gourav Banerjee