Indexing 1st & 2nd items by False and True was a surprise! /u/salamacast Python Education

It’s a bit playful, right?
Yeah they translate to 0 and 1, but come on!
Had to think about it for a while when first encountered it in the python3.imdbpy package.

submitted by /u/salamacast
[link] [comments]

​r/learnpython It’s a bit playful, right? Yeah they translate to 0 and 1, but come on! Had to think about it for a while when first encountered it in the python3.imdbpy package. submitted by /u/salamacast [link] [comments] 

It’s a bit playful, right?
Yeah they translate to 0 and 1, but come on!
Had to think about it for a while when first encountered it in the python3.imdbpy package.

submitted by /u/salamacast
[link] [comments] 

Leave a Reply

Your email address will not be published. Required fields are marked *