WEBVTT

00:00.200 --> 00:08.860
Well well now we're going to begin with creating a few different dimensional addy's in it.

00:08.880 --> 00:17.940
So let me just put it up as a month down and let's say different dimensional

00:21.680 --> 00:23.150
Aronsohn umpire.

00:23.670 --> 00:26.870
And we begin to wait for us to follow the

00:30.790 --> 00:32.070
the first dimension.

00:32.070 --> 00:33.870
That being as you already mentioned Lattin.

00:33.870 --> 00:36.420
So let me say zero dimensional Larrey.

00:36.600 --> 00:40.020
And of course that's what you're going to do.

00:40.020 --> 00:41.270
What is the zero dimensional.

00:41.280 --> 00:50.950
By the way I see three dimensional That is nothing but if if I may say it's nothing but just a while.

00:50.970 --> 01:03.700
So let me say I look an import non-players and B and cos I have using the Mondial in the model that

01:03.700 --> 01:07.020
is an adding matter which we always saw.

01:07.300 --> 01:11.110
I'm going to say just if I say 42 so that.

01:11.170 --> 01:16.240
And I see 42 is just a value that I put correct if I say Adye.

01:16.510 --> 01:25.120
And if I print x print type of x

01:29.590 --> 01:34.230
print the dimension of x.

01:34.600 --> 01:37.770
So S. dimension of x.

01:37.810 --> 01:44.230
And then I say Khama dimension of x can be always done with a particular in and b Mondial that is there

01:44.250 --> 01:45.860
is a method call s.

01:46.120 --> 01:46.840
You can have a look.

01:46.840 --> 01:48.890
There is a method called an end.

01:49.190 --> 01:49.780
OK.

01:49.900 --> 01:52.200
So you can go up to 0.

01:52.330 --> 01:55.920
You can go up the end so you can see a lot of methods and number.

01:56.110 --> 02:00.420
So you can just go up to an and end them.

02:00.430 --> 02:02.430
So you can see them right.

02:02.440 --> 02:10.810
So if I say anti-that in them and I just need to pass them and chanels which variable you want to see

02:11.260 --> 02:14.480
right shift and go there you are.

02:14.560 --> 02:16.690
This is 42.

02:16.720 --> 02:18.090
The value of x is 42.

02:18.090 --> 02:23.350
The type of x is class non-pilot in theory and the mention of X is zero.

02:23.530 --> 02:30.100
So that's the definition of x so you can just make an equal to that so that's about it.

02:30.220 --> 02:36.250
So this is something which you need to understand about zero dimensional.

02:36.670 --> 02:39.840
Now zero dimensional Laddie's of course we're not going to use them much.

02:39.850 --> 02:44.570
But let's go one to more dimensions more dimensional Lauri's carpentry.

02:44.830 --> 02:52.260
So let's say in a month down I'm going to see a one dimensional three one dimensional array.

02:52.360 --> 02:59.340
And in this particular area what we're going to have is a list right.

02:59.390 --> 03:01.760
So something of a kind.

03:01.780 --> 03:07.420
So one dimensional area and we're going to have something where I'm going to say my.

03:07.600 --> 03:15.510
Let me just define you know let me just define a few values in N integers and in floating point values.

03:15.610 --> 03:16.030
Right.

03:16.150 --> 03:21.420
So let me see it is all in integers so I'll say it already.

03:22.180 --> 03:24.810
I'll pass the list within this.

03:24.820 --> 03:28.740
I'm going to say one come on to come on come on.

03:29.170 --> 03:29.860
And so on.

03:29.860 --> 03:40.180
So this is an addy let me see a busy quarter again NPR-A and I'm going to be scrolled cell.

03:40.180 --> 03:42.440
This time it's going to be floating point values.

03:42.640 --> 03:45.050
So it's going to be 1.1.

03:45.060 --> 03:48.160
Come on 2.5 Kamaz 6.3.

03:48.160 --> 03:52.320
Come on.

03:52.540 --> 03:53.470
Right.

03:53.560 --> 04:08.120
So I have in the Now I can of course print a and print the and print if you want to you know.

04:08.140 --> 04:10.420
You can always print the type of BMT.

04:10.450 --> 04:23.490
That means the type of all the elements inside the array by saying a dot detect print b dot detect.

04:23.650 --> 04:24.190
OK.

04:24.340 --> 04:25.770
So just have a look at that.

04:25.900 --> 04:29.450
So you have as you can see the first one is a.

04:29.470 --> 04:34.570
Which is all integers which is an input to type breast of that type.

04:34.570 --> 04:36.390
It's a floating point.

04:36.610 --> 04:43.440
So that's about one the addy right now if I go on to the one the array let me go to two dimensional.

04:43.460 --> 04:46.320
So sorry for a one dimensional array itself.

04:46.660 --> 04:50.470
How do we come to know what that one name is Larry I need to also print that dimension.

04:50.740 --> 04:59.360
So hardware printed let me just print dimension print as I told you in the dot and them and I need to

04:59.360 --> 05:09.820
pass what I need to pause at 8 and I will also print it out in them.

05:09.860 --> 05:10.930
Sorry.

05:11.390 --> 05:17.390
And this time I'll toss bumby right cool.

05:17.390 --> 05:19.990
So it's dimension of it.

05:20.090 --> 05:23.060
There's another way also to get that dimension.

05:23.060 --> 05:29.290
So if I say print 8. you know there is something called 8..

05:29.300 --> 05:32.980
If I did actually see them you can all set.

05:32.980 --> 05:39.150
So this is by using a method of that class where you can access it with the object name.

05:39.250 --> 05:42.950
This is with a class name you can access the function and name.

05:43.110 --> 05:49.630
OK but you need to stick to the model with the model name that is some function calls a name in that

05:49.630 --> 05:52.530
model in which you need to pass the object.

05:52.540 --> 05:53.760
So there can be two ways.

05:53.770 --> 05:56.720
So what is the object that it's a particular.

05:56.750 --> 05:58.000
This is not a method by the way.

05:58.000 --> 06:01.790
This is just a this is just an attribute or a property right.

06:02.200 --> 06:08.520
So this is about this is about this is about one dime.

06:08.800 --> 06:11.050
Let's have a look at a two dimensional array.

06:11.050 --> 06:17.100
Of course you can you know you can of course do it well if you are creating a documentation problem

06:17.110 --> 06:20.960
you can always say in own dimension off.

06:21.010 --> 06:26.740
And that's always good whenever you're learning something for documentation.

06:26.740 --> 06:29.990
So that's the reason why we use tribut right.

06:30.220 --> 06:32.570
And dimension of.

06:33.800 --> 06:35.590
Come in with our beat.

06:35.620 --> 06:43.170
So this time it was going to put that so you can just put in an equal to or a colon and that's it.

06:43.270 --> 06:46.570
So you can also say this you can.

06:46.570 --> 06:50.120
This is also another way of printing dimension of NRD.

06:50.320 --> 06:54.130
Right now let's go on for.

06:54.160 --> 06:55.610
So this is a one new Yadi.

06:55.810 --> 06:57.780
Then we did a zero re-adding.

06:58.000 --> 07:01.940
Now we go one for two and multidimensionality right.

07:01.960 --> 07:09.410
So let me just say two and multidimensional drame lockdown.

07:09.810 --> 07:17.820
So that's so that's about when we have more than more than one list and it we're going to see how to

07:17.820 --> 07:19.980
define them to win multidimensionality.

07:20.250 --> 07:27.730
Right so I'm just going to get some more rate.

07:28.110 --> 07:29.280
Wait a minute.

07:29.310 --> 07:29.670
Yeah.

07:29.670 --> 07:35.370
So I have quite some things to keep cool.

07:35.650 --> 07:36.200
OK.

07:37.520 --> 07:40.230
So let me say I was starting with this to be.

07:40.300 --> 07:41.830
Now what do you do here.

07:41.870 --> 07:43.060
I'll say azy.

07:43.170 --> 07:49.420
So I'm going to say in the dot add it is equal to that adding.

07:49.550 --> 07:56.690
And in this particular R-E this time instead of instead of just passing one list inside the list I'm

07:56.690 --> 08:01.770
going to pass more or less inside the list I'm going to pulseless lists within the list.

08:01.770 --> 08:07.960
So let's say one list to list three list three lists within a list.

08:07.970 --> 08:12.400
So after this list I can just put an end to this list like implementer.

08:12.410 --> 08:14.560
And this is your main list right.

08:14.570 --> 08:16.040
Say a meanless closes up.

08:16.070 --> 08:20.710
So in regionalist I'm going to put some markers let's say one come up to come a three four come if I

08:20.730 --> 08:24.890
come on six seven eight nine right.

08:24.920 --> 08:26.260
That's your end the ending.

08:26.450 --> 08:40.490
And all I have to do is print Kapolei and print on dimension of say oh sorry dimension all day is all

08:40.730 --> 08:41.880
I need to put them in.

08:41.880 --> 08:47.230
Double code and say equal to or colon.

08:47.570 --> 08:48.660
What is a dimensional way.

08:48.710 --> 08:52.260
It's going to be a dot ended.

08:52.950 --> 08:53.930
Right.

08:53.960 --> 08:56.960
So all that of course we have

08:59.770 --> 09:01.430
dimension of these two.

09:01.730 --> 09:09.330
Can we have a 3D errand boy we can have a 3D rebut that's going to be very complicated.

09:09.780 --> 09:14.650
Still if you wish to do it all I can do is I can just copy paste this.

09:14.680 --> 09:24.630
And in another block and each of these each of them I'm going to put them in on each of these values

09:24.630 --> 09:27.860
I'm going to put another list within the main list.

09:27.960 --> 09:30.490
So it's going to be one.

09:30.780 --> 09:35.060
Two is one of the elements in this list.

09:35.440 --> 09:47.700
And of nano in this I'm gonna say call or fold so so this is going to be a bit

09:50.340 --> 09:52.490
six come a seven.

09:52.980 --> 09:56.310
I can keep putting the list within less within less.

09:56.310 --> 09:56.860
Right.

09:57.120 --> 10:01.960
So that's what I'm doing currently seven comma eight and nine.

10:01.980 --> 10:05.770
Come on 10 within a major list.

10:05.790 --> 10:13.040
Now if we see what's the type definition of a street because you have within you have a big list right.

10:13.050 --> 10:17.650
So this is your major list the bigger list this year.

10:17.670 --> 10:21.230
So what I can do is let me just make a classifications out here.

10:21.240 --> 10:25.270
So this is your this is your huge debt.

10:25.320 --> 10:25.900
Right.

10:26.100 --> 10:30.810
And then you have inside this there are going to be tulis.

10:30.810 --> 10:31.780
Correct.

10:31.830 --> 10:35.700
And so that's that's the same pattern for all of them.

10:35.700 --> 10:43.020
So here we have one in here you have another and we have one here and there and then closing up with

10:43.020 --> 10:46.700
this list and then closing up with this list.

10:46.920 --> 10:47.190
Right.

10:47.190 --> 10:48.480
So you can have a look.

10:48.480 --> 10:51.370
So this is a bigger issue.

10:51.450 --> 10:54.380
Q Is this one right.

10:54.390 --> 10:55.610
There's a huge list.

10:55.980 --> 10:58.440
And in that there is another list.

10:58.790 --> 11:00.820
And in this list there's a third list.

11:00.840 --> 11:05.180
So you have three d addy's out to you.

11:05.190 --> 11:06.830
So that's a dimension of eight.

11:06.870 --> 11:13.530
That's about three so you can you can probably understand how we go to go deeper and deeper and deeper

11:13.530 --> 11:14.010
and deeper.

11:14.010 --> 11:15.550
So that's about a treaty.

11:15.710 --> 11:16.430
OK.

11:16.450 --> 11:21.180
Now no let's think about this is about that dimension.

11:21.180 --> 11:22.890
What about the shape of the.

11:23.220 --> 11:32.020
Let's have a look at how how shape it would work out and stuff like that.
