Hello, I have been trying to understand the referencing between variables. For example:
array = [number for number in range(5)]
test_variable = array[2]
Here in this code above, does test_variable referencing to the “array” list or is it just a another aboject ? I mean, if this code was written with classes, for example:
array = [hash_map() for i in range(5)]
test_variable = array[0]
test_variable.assing(key, 10)
Here in the code above, does the test_variable affect “array[0]” or is it just another instance of "array[0] ?