arrays an exception would be raised in the same way as if we tried to print the value of variable sumthat had not previously been assigned value thusthe array should be initialized immediately after it has been created by assigning value to each element using the subscript notation any value can be usedbut logical choice is to assign none to each elementfor in range slots[inone the elements of the array can now be treated like any other variable in python that contains null referenceslots you may have noticed that we used the literal with the range(function to indicate the number of elements to be initialized this was necessary because hardware-supported array does not keep track of the array sizeit' up to the programmer to remember or maintain this value likewisethe programmer must also ensure they do not access an element outside the legal range references to any type of python object can be stored in any element of the array for examplethe following code segment stores three integers in various elements of the arrayslots[ slots[ slots[ the result of which is illustrated hereslots the operations provided by the array only allow for setting given element to given reference or accessing reference stored in given element to remove an item from the arraywe simply set the corresponding element to none for examplesuppose we want to remove value from the array slots[ none which results in the following change to the slots arrayslots