I was going through a solution to a problem which printed the inner and outer array. But while going the solution I was not able to understand the first line in which they took the input. I'm not able to get why they have used int there. The syntax is quite confusing to me. Here is the code:
A,B = [np.array([input().split()],int) for _ in range(2)]
print(np.inner(A,B)[0][0],np.outer(A,B),sep="\n")
intis the dtype specifiying the type of the array. It's the second argument to the np.array() constructor function.