There are four elements in the input, one per line. Use them to create a two-dimensional array: the first two elements are used for the first row, the next two elements are for the second one. For instance, [[3, 1], [4, 2]]. Find and print the rank of this matrix.
Submodule linalg
A rank of a matrix
Report a typo
Sample Input 1:
3
1
4
2Sample Output 1:
2Write a program in Python 3
import numpy as np
a = int(input())
b = int(input())
c = int(input())
d = int(input())
___
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.