Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah

IndhumathyChelliah/n17.py Secret

Created Jul 18, 2020
Embed
What would you like to do?
import numpy as np
a=np.eye(5)
print (a)
'''
Output:
[[1. 0. 0. 0. 0.]
[0. 1. 0. 0. 0.]
[0. 0. 1. 0. 0.]
[0. 0. 0. 1. 0.]
[0. 0. 0. 0. 1.]]
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment