This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
en:glossary:a:any [2020/05/13 10:31] horst |
en:glossary:a:any [2020/05/13 10:32] horst |
||
---|---|---|---|
Line 4: | Line 4: | ||
< | < | ||
- | + | <code python; gutter=false> | |
- | def any(iterable): | + | def any(iterable): |
- | for element in iterable: | + | for element in iterable: |
- | if element: | + | if element: |
- | return True | + | return True |
- | return False | + | return False |
+ | </ | ||
</ | </ | ||
| |