python data structures two dimensional array is an array within an array it is an array of arrays in this type of arraythe position of data element is referred by two indices instead of one soit represents table with rows and columns of data in the below example of two dimensional arrayobserve that each array element itself is also an array consider an example of recording temperatures four times dayevery day sometimesthe recording instrument may be faulty and we fail to record data such data for four days can be presented as two dimensional array as below day day day day the above data can be represented as two dimensional array as below [[ ][ , ][ ][ , , , ]accessing values the data elements in two dimensional arrays can be accessed using two indices one index referring to the main or parent array and another index referring to the position of the data element in the inner array if we mention only one indexthen the entire inner array is printed for that index position the example below illustrates how it works from array import [[ ][ , ][ ][ , , , ]print( [ ]print( [ ][ ]when the above code is executedit produces the following result[