Skip to main content
added 81 characters in body
Source Link
OMRY VOLK
  • 1.5k
  • 13
  • 24
import numpy as np   
>>> np.shape(a)
(2,2)

Also works if the input is not a numpy array but a list of lists

>>> a = [[1,2],[1,2]]
>>> np.shape(a)
(2,2)

Or a tuple of tuples

>>> a = ((1,2),(1,2))
>>> np.shape(a)
(2,2)
import numpy as np   
>>> np.shape(a)
(2,2)

Also works if the input is not a numpy array but a list of lists

>>> a = [[1,2],[1,2]]
>>> np.shape(a)
(2,2)
import numpy as np   
>>> np.shape(a)
(2,2)

Also works if the input is not a numpy array but a list of lists

>>> a = [[1,2],[1,2]]
>>> np.shape(a)
(2,2)

Or a tuple of tuples

>>> a = ((1,2),(1,2))
>>> np.shape(a)
(2,2)
added 2 characters in body
Source Link
OMRY VOLK
  • 1.5k
  • 13
  • 24
import numpy as N np   
>>> Nnp.shape(a)
(2,2)

Also works if the input is not a numpy array but a list of lists

>>> a = [[1,2],[1,2]]
>>> Nnp.shape(a)
(2,2)
import numpy as N    
>>> N.shape(a)
(2,2)

Also works if the input is not a numpy array but a list of lists

>>> a = [[1,2],[1,2]]
>>> N.shape(a)
(2,2)
import numpy as np   
>>> np.shape(a)
(2,2)

Also works if the input is not a numpy array but a list of lists

>>> a = [[1,2],[1,2]]
>>> np.shape(a)
(2,2)
added 27 characters in body
Source Link
OMRY VOLK
  • 1.5k
  • 13
  • 24
import numpy as N    
>>> N.shape(a)
(2,2)

Also works if the input is not a numpy array but a list of lists

>>> a = [[1,2],[1,2]]
>>> N.shape(a)
(2,2)
>>> N.shape(a)
(2,2)

Also works if the input is not a numpy array but a list of lists

>>> a = [[1,2],[1,2]]
>>> N.shape(a)
(2,2)
import numpy as N    
>>> N.shape(a)
(2,2)

Also works if the input is not a numpy array but a list of lists

>>> a = [[1,2],[1,2]]
>>> N.shape(a)
(2,2)
Source Link
OMRY VOLK
  • 1.5k
  • 13
  • 24
Loading