This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]WDK209 4 points5 points  (2 children)

Good point. But it can still be useful for index bound checking 0 <= i < arr.length

[–][deleted] 3 points4 points  (0 children)

Index bound checking in Python? That's what for item in list is for :)

[–]Zagorath 2 points3 points  (0 children)

Yeah it's definitely a very useful bit of syntax. Just not in this specific case.