Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 18, 2020 02:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/f9788e51621357cde3a1b5cc832f8473 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/f9788e51621357cde3a1b5cc832f8473 to your computer and use it in GitHub Desktop.
import numpy as np
a=np.array(((1,2,3),(4,5,6)))
print (a)
'''
Output:
[[1 2 3]
[4 5 6]]
'''
a=np.array([[1,2,3],[4,5,6]])
print (a)
'''
Output:
[[1 2 3]
[4 5 6]]
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment