welcome to raigurukul.com in this video well discuss about how to get shape of an array in python numpy so if youre new to this channel and looking forward to learnt numpy in detail consider subscribing and pressing bell icon for more updates shape of n array is define number of elements in each right dimensions so if we want to get the details of each and every array we can use numpy for extracting data numpy arrays have an attribute called shape that returns a double with each index having the number of corresponding elements if you want to generate this detail we have to import numpy liability as n and here we have to define an array e equal to n dot array and inside that we need to enter the value so lets say 2 3 5 and 7 next value or next array i want to create here as a 7 9 1 0 so if i want to print the shape of this array then i need to write your print and then e dot shape let me run this i think there is a multiple space four there is a typo data type not understood import numpy as okay okay so here we have to add two square brackets now you can see the shape of array is printed as 2 and 4. that is the example and this which means that the array has two dimensions each dimension has four elements so this is how we can get the information about an array when we want to create an array with five dimensions using add minimum using a vector with the values and verify that the last dimension has some values then also we can add and the minimum so lets say in this example here we have deployed this array and i want to include one more dont want this just press comma n d minimum and equal to 4 and i dont want this as well and when when you want to print this array then printing for array is this and the second one for print a dot shape now lets run this okay theres a typo error okay now run this now you can see we have received the 4 sorry the value 2 3 five seven and finally one one one one four so lets slip its represent the value is printing with the dimensions so this is how we can handle a shape of an array in numpy hope you liked it if you really enjoyed the session consider subscribing and pressing bell icon for more updates thank you for watching