Hacker News new | past | comments | ask | show | jobs | submit login

You can also use the `next(x for x in ...)` form where you can even supply a default value.



Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: