3 ms·
>Iterable` interface in Python is also really neat and useful if used responsibly. Honestly this was a major attraction to python for me a decade plus ago as a
by 27182818284 7y ago
>Iterable` interface in Python is also really neat and useful if used responsibly.
Honestly this was a major attraction to python for me a decade plus ago as a student when I started learning--even when I used it irresponsibly. There are so many small tasks where you just kinda have to iterate over 100-1000 items that you're not worried about big-O or anything like that—you just want to iterate and work on a collection quickly for some task in the office.