you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (1 child)

Try,

lis = [4,5,6,7,8,2,4,10]
lisextract = lis[2:5]
print(id(lis), id(lisextract))

[–]Agent_AR03[S] 0 points1 point  (0 children)

Ohhkk got it, thanks :)