Transposition of an array

Report a typo

Read four integers from the input, each of them on a new line. Use all of them to create an array the first two elements are for the first row, the second two elements are for the second one. Then print the transposed array.

Sample Input 1:

4
5
6
7

Sample Output 1:

[[4 6]
 [5 7]]
Write a program in Python 3
import numpy as np
___

Create a free account to access the full topic