+ 3
Why i got output as 1?
Print(3**0) Well i tried some different format like (9**0) & (7**0) But still the output is same i.e 1 not 3,9,7... I thing 3, 9, 7 should be the answer respectively for each because of no power... But why 1?
3 Respuestas
+ 10
Well bro
First of all
3**0 will give 1 as the power of any number raised to 0 is 1
And Second
(9**0) & (7**0)
9**0 = 1
7**0 = 1
So 1&1 = 1
Refer to this for more information :
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2279/
Thanks
+ 3
** is exponentiation operator and any number raised to power 0 yields 1 as answer
+ 2
Out put is "1" because you raised "0" to power of "3" and when "0" is raised to power than it will result in "1". "**" is used in Puthon to raise something to power, and making "0" exponent results in "1".