- 1
What is the output of this code and also explain me
A=[0 , 0 , 0] Print (len(A)**0)
12 odpowiedzi
+ 5
itx_ mobi20 Is there in quiz Print or print. If there is Print then it will give error.
+ 5
itx_ mobi20 Ok then you can report as ~ swim ~ said. Because output is coming 1.
+ 2
Ok ~ swim ~
+ 1
Yes i know nd i give the answer but the answer is wrong
+ 1
No AJ Anant its print my mistake
+ 1
~ swim ~ what is wrong in this quiz
+ 1
Fill in the blanks ~ swim ~
+ 1
Anything raised to 0 is 1
So o/p is 1
+ 1
Answer is 3 or maybe 111
0
1 cause any number raised to the power of 0 including 0 results in 1
0
There's a list which has lenght 3 so when you evaluate the print statement it raises the lenght i.e. 3 to the power of 0 and anything raise to 0 is 1.
0
Length is 3
Pow of 3 is 0
Which is 1