Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = lambda *a: map(lambda (x, y): y * 2 if x < len(a) >> 1 else y / 2, enumerate(a))
- print(f(2, 4, 6, 8, 20, 40, 60, 80))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement