Combining operations

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, divide the first one by the second one and transpose the resultant array. Finally, print the transposed array:

[[0.2        0.6       ]
 [0.66666667 1.33333333]]

Sample Input 1:

1
2
3
4
5
6

Sample Output 1:

[[0.2        0.6       ]
 [0.33333333 0.66666667]]
Write a program in Python 3
import numpy as np
___

Create a free account to access the full topic