Posts by Kingflare • 11 points
1 post
-
1
votes1
answer102
viewsQ: How does Python determine if a value is true?
I have the following doubt: >>> a = [200,100] >>> a[True] Exit >>> 100 >>> a = [200,100] >>> a[False] Exit >>> 200 Why does this happen? The…