quences we can define the array adt to represent one-dimensional array for use in python that works similarly to arrays found in other languages it will be used throughout the text when an array structure is required define array adt one-dimensional array is collection of contiguous elements in which individual elements are identified by unique integer subscript starting with zero once an array is createdits size cannot be changed arraysize )creates one-dimensional array consisting of size elements with each element initially set to none size must be greater than zero length ()returns the length or number of elements in the array getitem index )returns the value stored in the array at element position index the index argument must be within the valid range accessed using the subscript operator setitem indexvalue )modifies the contents of the array element at position index to contain value the index must be within the valid range accessed using the subscript operator clearingvalue )clears the array by setting every element to value iterator ()creates and returns an iterator that can be used to traverse the elements of the array some computer scientists consider the array physical structure and not an abstraction since arrays are implemented at the hardware level but rememberthere are only three basic operations available with the hardware-implemented array as part of our array adtwe have provided for these operations but have also included an iterator and operations for obtaining the size of the array and for setting every element to given value in this casewe have provided higher level of abstraction than that provided by the underlying hardware-implemented array the following simple program illustrates the creation and use of an array object based on the array adt comments are provided to highlight the use of the operator methods fill - array with random valuesthen print themone per line from array import array import random the constructor is called to create the array valuelist array