0
What is the output of print (2**3**5)
Kindly any one explain please
11 Answers
+ 5
** represents the exponent. By law of exponents,
(x^a)^b=x^(aĂb)
So here, the answer will be,
2^15=32768
In case of python, it calculates the 2nd part first, which gives, 2^(243).
Use of brackets plays a key role.
+ 11
Coding Kitty S. V. Shivaani
This is how it's written on a sheet of paper
5
3
2
243
So output will be 2 , a big one
+ 4
find it yourself.
'**' is actually what we called power. so 2 will be power of 3 then the output will be powered by 5. so the answer is way too long
+ 3
2**3**5 == 2**(3**5)
2**3**5 != (2**3)**5
+ 2
Thank u
+ 2
Thanks a lot simba đ„
+ 2
** is power.so 2**15=32768
+ 2
Thanks a lot sidhique
+ 2
Why are people assuming that 3**5 == 15 ?
It's actually 243.
+ 1
Thank u Rajeev kumar