Python Forum
How does 'any' and 'all' work?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How does 'any' and 'all' work?
#3
There is the built in help that gives the docstring explanation and instructions when its more complicated. You do not usually have to search the internet for simple explanations.

help(any)
any(iterable, /)
    Return True if bool(x) is True for any x in the iterable.
    
    If the iterable is empty, return False.
help(all)
all(iterable, /)
    Return True if bool(x) is True for all values x in the iterable.
    
    If the iterable is empty, return True.
Recommended Tutorials:
Reply


Messages In This Thread
How does 'any' and 'all' work? - by ibzi - Jun-02-2019, 10:50 AM
RE: How does 'any' and 'all' work? - by metulburr - Jun-02-2019, 12:27 PM
RE: How does 'any' and 'all' work? - by perfringo - Jun-02-2019, 03:46 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020