+ 1
How is the output different?
#I know in maths a⁰ = 1, but the first line is same as the second one, isn't it? How is the output different? print(0**0) output: 1 print(0*0) output: 0
8 Answers
+ 2
Oh. Is it not solved? You said typo mistake?
Do you mean why not 0,0 ?
As you mentioned already a°= 1 so 0**0 is 0° => 1
And 0 * 0 is 0 as you know a * 0 => 0
Do you mean, why not 1,1 ? Still same answer.
a° = 1 so 0° => 0**0 = 1
1**0 => 1,
..
999**0 => 1
And
a * 0 => 0*0 = 0.
1234*0 => 0
Anything power of 0 => 1
Anything multiplied by 0 is 0
Mathematics basics...
Hope it clears...
+ 2
* and ** are different operators.
That's all.
+ 1
Recheck again..
Can you share as code link ?
+ 1
Jayakrishna🇮🇳 sure!
+ 1
The answer am getting is 1 0 .
Not 1 2 ..!
+ 1
Jayakrishna🇮🇳 , it was typing mistake.
+ 1
Jayakrishna🇮🇳 , can you please explain me what I'm asking?