Skip to content

Instantly share code, notes, and snippets.

@tkheyfets tkheyfets/any.py
Created Feb 14, 2018

Embed
What would you like to do?
def function_name (iterable, f):
result = False
for x in iterable:
if f(x):
result = True
break
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.