Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # b_trunc_rev.py
- combo = [1, 2, 3, 4]
- result = combo[:-1][::-1]
- print(result)
- result = combo[-2::-1]
- print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement