Python is a language full of interesting quirks, and one of them is how it handles boolean values in indexing. Consider this snippet:
my_list = [0, 1]
print(my_list[True]) # Output: 1
Why does my_list[True] return 1? To understand this, we need to dive into how Python