+ 2
had question in python quiz which came as a result of 5. Can someone explain the logic and why answer is 5.
3 Respostas
+ 4
ahhhh so since a has a [] it<gives value of 5 which is same as 1 meaning true?
+ 4
On short, yes
+ 3
The code gives an error, but from the looks of it, the reason could be the fact that comouters store the value true as 1 and the value false as 0 and printing will give the item at the index 1, which is 5.