Output not showing number of rows

In line 43 , of your code it is just printing only the number of columns but it is not printing the number of rows. why?

The column 43 refers to a type statement, I think you mean column 44 in which we have an array like [1,2,3,4]
and the a.shape() prints (4,) the doubt is it not (4,1). I hope i am correct on this and will give an explanation for the same
so basically (4,) means it is a 1-D array with 4 elements present in it.
and (4,1) means it is a 2-D array with 4 rows and 1 Column

So while the working and the data remains the same the orientation changes and it can affect the remainder of the code

Hope this helps

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Than you very much , I got my doubt resolved thank you very much