Computer Science, asked by sriragavendrar1988, 2 days ago

x = [[10.0, 11.0,12.0],[13.0, 14.0,15.0]]
y=x[1][2]
print (y)

Answers

Answered by presentmoment
13

The output of the given expression is 15.0

Explanation: As the given expression follows the syntax of an array in python.

x is the array

and y stores the value of an element from x at position [1][2], which means the element from row 1st present at column number 2.

We use the index operator to access array elements. The indexing starts from 0.

So, the elements of x are present at:

[0][0] =10.0

[0][1]=11.0

[0][1]= 12.0

[1][0]=13.0

[1][1] = 14.0

[1][2] = 15.0

Similar questions