Advertisement
FuFsQ

Untitled

Oct 12th, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. cnt = 5
  2.  
  3. for ctr in range(2**cnt, 2**(cnt+1)):
  4. x,y,z,w,t = [int(x) for x in bin(ctr)[3:]]
  5. # or can use
  6. # arr = [int(x) for x in bin(ctr)[3:]]
  7. print(x,y,z,w,t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement