Transposition and Subtraction

Report a typo

Read six integers from the input, each of them on a new line. For example:

1
4
3
8
5
6

Use all of them to create two arrays. The first four integers must be used for creating a two-dimensional array: the first two elements are for the first row, the second two elements are for the second one:

[[1 4]
 [3 8]]

The last two elements are for creating a vector: [5 6].

Once the arrays to work with are ready, transpose the first array. Finally, print the result of subtracting the transposed array and the vector.

[[-4 -3]
 [-1  2]]

Sample Input 1:

10
9
8
7
6
5

Sample Output 1:

[[4 3]
 [3 2]]
Write a program in Python 3
import numpy as np
___

Create a free account to access the full topic