Why does the id() function returning the same value for the alternate elements of the array in python? I use the following code
import numpy as np
a = np.array([3, 6, 9, 12,5])
print('array id\t',id(a))
print(a[0],'\t',id(a[0]))
print(a[1],'\t',id(a[1]))
print(a[2],'\t',id(a[2]))
print(a[3],'\t',id(a[3]))
print(a[4],'\t',id(a[4]))
and I got the output as follows:
array id 59184176
3 200295200
6 200295136
9 200295200
12 200295136
5 200295200