Something that irks me in the most nitty way is how Python allows you to index an array from the right with negative integers...but the last element is -1 instead of -0. And like, I know why, but it's still annoying to my brain.
-
-
I know, I know. Just questioning why mylist[1 - 1] shouldn't be the same as mylist[-1 + 1]
-
Because the latter is negative zero, Fred
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.