Hello, everyone, and welcome to this tutorial here we will understand youthful attributes and methods.
Let us begin first create and one dimensional Eddie A double R and B dot a age.
Twenty you.
Take this at a.
Numbers from zero to twentyfold.
No, we will understand reship method.
Type this at a dot reshape for you, come off, are you executed?
No, this is a two dimensional every five rows and five columns.
Previously it vaults and one dimensional at a using this method to be healthy shape one dimensional
at a into two dimensional at a now type again a r r dot reshape.
You call Martin Fido's and 10 columns here we will get value error cannot reship area of size 20 for
you into five chromatin before reshaping the add a B how to take Nemerov elements in this eddy.
And according to that be able to reshape the array.
So this is all about the reship method.
Let us understand, Max and Min.
First, create a random Eddie.
And we don't random.
Not a random integer zero 50 dayn.
Take this at a.
So there are total 10 elements in this at a no use the max method.
Type name of the Eddie Dot, Max.
Forty nine forty nine is the maximum number in this area.
Similarly, we can use Minne method.
I don't mean.
Three.
This is the minimum number in this area.
We can take positions.
Also, let us see how type.
Name of the at a dot r..
Max.
To so possession of maximum value is at 2:00.
That means indexed to zero one to.
Take the position of minimum value.
I mean.
Three.
So minimum value at indexed three zero, one, two, three.
So this is all about the max and min.
Let us understand about the attributes cheap.
Babe, the name of Eddie then attributes, shape, execute.
Twenty for you.
And then karma, that means it is.
And one dimensional, Eddie.
No reshape this Eddie.
Eddie Dockley shape for you by for you and store this in a variable be execute.
Now take the shape of variable B.
For you.
Bye for you.
Five rows and five columns.
That means it is a two dimensional eddy.
So this is all about the attributes shape.
Let us understand attribute that day.
That is D-Day.
Type Eddie Dodd Depay.
Integer 64.
So this attribute returns data.
Type of an array.
So this tutorial about youthful attributes and methods NCR.
Let us revise.
First, we understood the ship method.
After that, we all understood Max and Min functions.
Then VLT understood, added Max, and I mean, these two function returns the position of maximum value
and minimum value.
Then we held understood attributes shape.
And at the end, we all understood attributed that day.
So that's it for this by 10:00.
Yell.
I will see you in the next one till then.
Happy learning.