Advertisement
here2share

# b_trunc_rev.py

Dec 7th, 2024
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. # b_trunc_rev.py
  2.  
  3. combo = [1, 2, 3, 4]
  4. result = combo[:-1][::-1]
  5. print(result)
  6. result = combo[-2::-1]
  7. print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement