Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # b_n4_61432507.py
- n = 4
- result = [i if i % 2 else n * 2 - i - 2 for i in range(n * 2)]
- print(result) # Output: [6, 1, 4, 3, 2, 5, 0, 7]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement