I've copied one element of a list but the id is still the same.
t=['bancorp', 'bancorp','bancorp ba','bancorp ali', 'gas eu', 'gas', 'karl', 'bancorp','bancorp america','uni','gas for','gas tr']
n=t[2]
id(n)
124661664
id(t[2])
124661664
I´ve tried this but the ID is still the same:
n=cp.deepcopy(t[2])
How Can I copy the value but with different ID?
EDIT:
When I slice:n=t[2:3][0]
. The id is different.
But when I slice: n=t[0:1][0]
. The ID is the same. Why did it happen?