You've successfully subscribed to The Poor Coder | Hackerrank Solutions
Great! Next, complete checkout for full access to The Poor Coder | Hackerrank Solutions
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Hackerrank Eye and Identity Solution

Hackerrank Eye and Identity Solution

Beeze Aal
Beeze Aal

Solution in python3

Approach 1.

import numpy
print(numpy.eye(*map(int,input().split())))

Approach 2.

import numpy
N, M = map(int, input().split())
print(numpy.eye(N, M))

Solution in python

import numpy
N,M = map(int,raw_input().split())
print numpy.eye(N,M)