Skip to content

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

@dilanmelvin

Description

@dilanmelvin

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions