A rank of a matrix

Report a typo

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.

Sample Input 1:

3
1
4
2

Sample Output 1:

2
Write a program in Python 3
import numpy as np

a = int(input())
b = int(input())
c = int(input())
d = int(input())
___

Create a free account to access the full topic