array is created in python by importing array module to the python program thenthe array is declared as shown belowfrom array import arrayname array(typecode[initializers]typecode are the codes that are used to define the type of value the array will hold some common typecodes used are as followstypecode value represents signed integer of size byte/tdb represents unsigned integer of size byte represents character of size byte represents signed integer of size bytes represents unsigned integer of size bytes represents floating point of size bytes represents floating point of size bytes before looking at various array operationslets create and print an array using python the below code creates an array named array from array import array array(' '[ , , , , ]for in array print(xoutput when we compile and execute the above programit produces the following result