array array(' '[ , , , , ]print (array index( )output when we compile and execute the above programit produces the following result which shows the index of the element if the value is not present in the arraythen the program returns an error update operation update operation refers to updating an existing element from the array at given index herewe simply reassign new value to the desired index we want to update from array import array array(' '[ , , , , ]array [ for in array print(xoutput when we compile and execute the above programit produces the following resultwhich shows the new value at the index position