dxnge

tsk 8

Nov 3rd, 2021
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. from itertools import product
  2. a = product(range(16), repeat=5)
  3. gen = [x for x in a if all(x[0] != d for d in (0,1)) and x[-1] % 2 == 1]
  4. print(len(gen))
  5.  
Advertisement
Add Comment
Please, Sign In to add comment