Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cnt = 5
- for ctr in range(2**cnt, 2**(cnt+1)):
- x,y,z,w,t = [int(x) for x in bin(ctr)[3:]]
- # or can use
- # arr = [int(x) for x in bin(ctr)[3:]]
- print(x,y,z,w,t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement