LinAlgError: Last 2 dimensions of the array must be square code example

Example 1: Write a function called square_odd that has one parameter. Your function must calculate the square of each odd number in a list. Return a Python 3 list containing the squared values Challenge yourself: Solve this problem with a list comprehension!

nums = [square_odds**2 for square_odds in nums if square_odds%2 != 0]

Example 2: We pass in a 2 dimensional list. You should output the 3rd element of the 2nd row.

In a 2 dimensional list, output the 3rd element of the 2nd row.
# remember to account for 0 index
print(variable[1][2])