Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is not how for loops work in Python, which does not have ranged loops.

The example works because range objects implement __len__ which is where tqdm will get it's total/count information from.



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: