Python-Hackerrank-Solutions icon indicating copy to clipboard operation
Python-Hackerrank-Solutions copied to clipboard

eyes and identify (hackerrank-python)[python 3]

Open dilanmelvin opened this issue 1 year ago • 0 comments

import numpy as np

elements = input().split() int_elements = list(map(int, elements))

result = np.eye(int_elements[0], int_elements[1])

Adjusting the print format to match the expected output

np.set_printoptions(legacy='1.13') # Enables old formatting style

print(result)

dilanmelvin avatar Oct 04 '24 07:10 dilanmelvin