Apr-30-2019, 12:47 PM
(Apr-30-2019, 12:42 PM)buran Wrote: breakwithout the break statement the output is the following one
Output:---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-170-4c6aef3bebbf> in <module>
16 return new1.reshape( shape )
17
---> 18 print (get_matrix(f1, f2))
<ipython-input-170-4c6aef3bebbf> in get_matrix(f1, f2)
13 new1 = np.array(new)
14 shape = ( 30, 20 )
---> 15 new1.reshape( shape )
16 return new1.reshape( shape )
17
ValueError: cannot reshape array of size 3200 into shape (30,20)