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.



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

Search: