5 ответов
+ 4
By convention, 0**0 == 1.
https://en.wikipedia.org/wiki/Zero_to_the_power_of_zero
+ 7
Interesting question.
Wolfram Alpha gives undefined for 0^0
https://www.wolframalpha.com/input/?i=0%5E0
And I found this too:
https://stackoverflow.com/questions/14414430/why-0-0-equals-1-in-JUMP_LINK__&&__python__&&__JUMP_LINK
Actually, even mathemathicians disagree what it should be, and
"Most programming languages follow the convention that 0 ** 0 == 1. Python is no exception, both for integer and floating-point arguments."
+ 1
thank you Diego
+ 1
Thanks Tibor Santa for your great answer!
0
According to mathematics , 0**0=1 and all computer languages follows the rules of mathematics