Skip to content

Instantly share code, notes, and snippets.

@kachick
Created February 15, 2014 00:28
Show Gist options
  • Save kachick/9012466 to your computer and use it in GitHub Desktop.
Save kachick/9012466 to your computer and use it in GitHub Desktop.
import functools
def checkio(els):
return functools.reduce(lambda x,y: x+y, els[:3])
if checkio([1, 2, 3, 4, 5, 6]) == 6:
print('Done!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment