Anagrams

Tim Chase python.list at tim.thechases.com
Wed Oct 24 12:32:18 EDT 2007


>>  Is "all" inbuilt function in python? what it does?
> 
>>>> help(all)
> Help on built-in function all in module __builtin__:
> 
> all(...)
>     all(iterable) -> bool
> 
>     Return True if bool(x) is True for all values x in the iterable.

It may be helpful to know that any() and all() were added in 
Python 2.5

http://docs.python.org/lib/built-in-funcs.html#l2h-9

-tkc







More information about the Python-list mailing list