Guest User

Untitled

a guest
Jul 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #!/usr/bin/env python
  2. naur = lambda a: [(ind,i) for ind,i in enumerate(a) if sum(a[:ind+1]) == sum(a[ind:])] or -1
  3. print naur([1, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 0, -1, 1, 2, 1])
Add Comment
Please, Sign In to add comment