Hacker News new | ask | show | jobs
by SilurianWenlock 2657 days ago
Where are you meant to learn this?
3 comments

Python's list of built-in functions is fairly small https://docs.python.org/3/library/functions.html#built-in-fu... (but to be clear, I wouldn't ding somebody for forgetting about one of them).
Reading other people's code (usually while improving it)
https://docs.python.org/3/

Consider that your iterable may not be a list, and may not actually have a "length" prior to its being consumed