# For any & every

**URL:** <https://discuss.python.org/t/for-any-every/53302>\
**Category:** Python Help\
**Created:** [May 14, 2024, 2:38pm UTC](https://discuss.python.org/t/for-any-every/53302 "2024-05-14T14:38:23Z")\
**Posts on this page:** 1\
**Showing post:** 99

<div class="post-metadata">

**Author:** ![dg-pb](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/dg-pb/32/16248_2.png) [@dg-pb](https://discuss.python.org/u/dg-pb)\
**Post date:** [May 19, 2024, 8:55pm UTC](https://discuss.python.org/t/for-any-every/53302/99 "2024-05-19T20:55:33Z")

</div>

If going in this direction, then I think eliminating counting example from your examples would make things simpler for now.

It could be a separate method, e.g. `(...).ntrue(n=1, pred=None)`, which counts up to and including `n`.

---

_[View the full topic](https://discuss.python.org/t/for-any-every/53302)._
