shape of the array
Title
Question
In [11]: ar
Out[11]: array([1, 2, 3, 4, 5, 6, 7, 8])
In [12]: ar.shape(2,4)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-12-ac49df2b586f> in <module>
----> 1 ar.shape(2,4)
Out[11]: array([1, 2, 3, 4, 5, 6, 7, 8])
In [12]: ar.shape(2,4)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-12-ac49df2b586f> in <module>
----> 1 ar.shape(2,4)
TypeError: 'tuple' object is not callable
Python-3.4.3 Getting-started-with-arrays 04-05 min 40-50 sec
Answers:
<span style="background-color: rgb(250, 250, 250);">ar.shape(2,4) </span>The command you are trying to execute is incorrect. Pls, watch the video once again and practice exactly what is being instructed.
Login to add comment