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.
Operations with several arrays
Transposition of an array
Report a typo
Sample Input 1:
4
5
6
7Sample Output 1:
[[4 6]
[5 7]]Write a program in Python 3
import numpy as np
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.