Advertisement
roman_gemini

Untitled

Jun 10th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. f = lambda *a: map(lambda (x, y): y * 2 if x < len(a) >> 1 else y / 2, enumerate(a))
  2.  
  3. print(f(2, 4, 6, 8, 20, 40, 60, 80))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement