---
title: "Comment by Shevach Riabtsev on \"Python Roads of Reverse List\" | Hashnode"
description: "the python utility &#39;reverse&#39; is reversing in-place. if you need a new list of reversed items? In such case the original list should be copied (by the me"
url: "https://hashnode.com/posts/python-roads-of-reverse-list/6184f7d0fd5d634d01698018/comment/61851ad2fd5d634d0169837b"
---

[Discussion](https://hashnode.com/posts/python-roads-of-reverse-list/6184f7d0fd5d634d01698018)

Comment [Python Roads of Reverse List](https://hashnode.com/posts/python-roads-of-reverse-list/6184f7d0fd5d634d01698018)

[Shevach Riabtsev](https://hashnode.com/@slavah264)

[Nov 5, 2021](https://hashnode.com/posts/python-roads-of-reverse-list/6184f7d0fd5d634d01698018/comment/61851ad2fd5d634d0169837b)

the python utility 'reverse' is reversing in-place. if you need a new list of reversed items? In such case the original list should be copied (by the member utility 'copy') into the new list and the function 'revers' applied on the new list: a=\[1,2,3,4,5\]

b=a.copy()

# 'b' and 'a' are different objects

id(a) 80088808

id(b) 8526344

print(b) \[ 1,2,3,4,5\]

b.reverse()

print(b) \[5, 4, 3, 2, 1\]
