Skip to content

Instantly share code, notes, and snippets.

View samsonlarsson's full-sized avatar
⛷️
Do the work

Samson Larsson samsonlarsson

⛷️
Do the work
View GitHub Profile
def one(iterable, condition=bool):
found = False
for i in iterable:
if not condition(i): continue
if found: return False
found = True
return found