0

What is the output of print (2**3**5)

Kindly any one explain please

3rd Jan 2021, 6:34 AM
S. V. Shivaani
S. V. Shivaani - avatar
11 Antworten
+ 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.
3rd Jan 2021, 7:10 AM
Siddhique
Siddhique - avatar
+ 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
3rd Jan 2021, 6:49 AM
Simba
Simba - avatar
+ 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
3rd Jan 2021, 6:37 AM
Rellot's screwdriver
Rellot's screwdriver - avatar
+ 3
2**3**5 == 2**(3**5) 2**3**5 != (2**3)**5
5th Jan 2021, 2:10 AM
Sonic
Sonic - avatar
+ 2
Thank u
3rd Jan 2021, 6:41 AM
S. V. Shivaani
S. V. Shivaani - avatar
+ 2
Thanks a lot simba 🔥
3rd Jan 2021, 6:51 AM
S. V. Shivaani
S. V. Shivaani - avatar
+ 2
** is power.so 2**15=32768
4th Jan 2021, 5:57 AM
Rajeev kumar
Rajeev kumar - avatar
+ 2
Thanks a lot sidhique
4th Jan 2021, 6:21 AM
S. V. Shivaani
S. V. Shivaani - avatar
+ 2
Why are people assuming that 3**5 == 15 ? It's actually 243.
5th Jan 2021, 2:03 AM
Sonic
Sonic - avatar
+ 1
Thank u Rajeev kumar
4th Jan 2021, 6:21 AM
S. V. Shivaani
S. V. Shivaani - avatar