Advertisement
here2share

# b_n4_61432507.py

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