Ex. 2, Flattening syntax problem

When using the reshape function you have to use two dimensions which make sense for the array you are working with.

Example:

a = np.array([0, 1, 2, 3, 4, 5])

# we can reshape the array to be a (3,2)
a.reshape(3, 2)

array([[0, 1],
       [2, 3],
       [4, 5]])

# when we use -1 the dimension is inferred so it makes sense
# for example if we put (2, -1) the dimension inferred will be 3
# so the array becomes (2, 3)
a.reshape(2, -1)

array([[0, 1, 2],
       [3, 4, 5]])