-
-
Save IndhumathyChelliah/f9788e51621357cde3a1b5cc832f8473 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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