WEBVTT

00:00.200 --> 00:04.730
All right so we're here to continue up with the science libraries out here.

00:04.740 --> 00:11.160
And now we have something that is numpad the library that we're going to dive deeper into.

00:11.160 --> 00:17.960
We saw last time the we saw a number by and then a Matloff lib library as we can see out here.

00:18.210 --> 00:18.600
All right.

00:18.600 --> 00:21.630
So this is quite what we did last time.

00:21.930 --> 00:25.470
But we can now begin up with something more.

00:25.530 --> 00:32.920
And so and dived deeper into numb by as a whole so we can start up with a new new file.

00:32.970 --> 00:36.840
Let's go on detail analysis and I'll take you out here.

00:36.870 --> 00:43.050
Maybe I can begin of course I can use the same using them by the IP by N.B. For now.

00:43.050 --> 00:49.350
But then when I run it I'll have to give my children a notebook ID or the token ID that we need to do

00:49.350 --> 00:49.590
it.

00:49.650 --> 00:50.190
All right.

00:50.190 --> 00:56.340
So maybe you can do it here or if you want we can just start another one let's say you know I'll open

00:56.340 --> 01:05.840
up a new chip in a notebook and say Nampa number by 4.

01:06.100 --> 01:06.650
Yeah.

01:06.920 --> 01:13.580
So I'll open up that and then maybe I'll just just for checking if everything is fine with a chip in

01:13.580 --> 01:15.550
a notebook I can just print hello.

01:15.950 --> 01:18.600
And of course I need to put the token.

01:18.710 --> 01:25.900
And as I told you you need to go out here to all you can get the token also in the Anaconda problem

01:25.910 --> 01:26.870
do you have the talk in here.

01:26.880 --> 01:29.690
But it is it's not easy to copy from here.

01:29.780 --> 01:37.050
So you can go to your Krome wherever it open the jugular because open you can just go on to your too.

01:37.100 --> 01:37.390
Yeah.

01:37.430 --> 01:43.260
You can just press F trails or function at all it gives you the elements and the elements are there.

01:43.260 --> 01:50.520
There is something called as an API token discoveries that come back to your chip in a notebook and

01:50.520 --> 01:57.740
paste the token once that is done you say OK connect and distribute Jupiter notebooks over with that

01:58.260 --> 01:59.360
takes her up and down.

01:59.360 --> 02:01.500
And we have print hello.

02:01.730 --> 02:02.210
Right.

02:02.420 --> 02:04.250
So that's how we we can upgrade.

02:04.510 --> 02:08.240
BI OK for now we can of course we're going to modify this if you know what.

02:08.250 --> 02:09.180
Hello Tia.

02:09.440 --> 02:18.380
All right let's make it as a month down and let's say none by and none by and dive deeper.

02:18.380 --> 02:19.590
Now comes the question.

02:19.730 --> 02:27.270
OK so if I'm going into name by Y and by when a list is already available what is the benefit of using

02:27.270 --> 02:30.690
an name by name by NDA or what a list.

02:30.770 --> 02:31.530
Right.

02:31.520 --> 02:37.690
Like if you remember up LSD LSD is going to be equal to let me just define a few numbers out here let's

02:37.690 --> 02:39.910
say twenty four 12:57.

02:40.030 --> 02:43.480
OK this is a number which is which is a list which is there out here.

02:43.700 --> 02:51.050
And of course if I print LSD and of five print the type of LSD that's gonna be

02:54.890 --> 03:00.830
right it's going to be less than of course it says that it is the type of glassless correct.

03:00.910 --> 03:01.310
OK.

03:01.370 --> 03:10.130
But but if I if this is about the lives can I also say if this is a list I can also say that from this

03:10.130 --> 03:10.420
list.

03:10.420 --> 03:12.600
Now I'm going to do something more.

03:12.950 --> 03:15.130
That is I'm going to create an empire.

03:15.320 --> 03:17.830
And if you remember I had done last time.

03:17.870 --> 03:27.830
Import right here for creating an empire I had an import done by as MP and then I'd gone onto and then

03:27.830 --> 03:33.860
gone to saying N.P. dot dot dot dot dot atti.

03:34.160 --> 03:39.900
So that's already there and we are very I need to pass the list.

03:39.920 --> 03:41.500
Let's pass list LSD.

03:41.600 --> 03:46.250
So once I pass the list of causes is gonna return to me.

03:46.310 --> 03:49.010
Number three let me call it as list.

03:49.190 --> 03:53.050
OK so one is a list and an address an empty list that is non-pilots.

03:53.300 --> 04:01.890
OK let me print the entry list and Prynne type list.

04:03.010 --> 04:04.740
It Right.

04:04.830 --> 04:05.350
OK.

04:05.520 --> 04:12.250
So once I print that up OK I'll just say she tenter and then it runs out there.

04:12.290 --> 04:12.640
Yup.

04:12.690 --> 04:18.730
So as you can see this is one this one is a class name Piedad in the ad.

04:19.080 --> 04:19.520
Right.

04:19.650 --> 04:25.800
So these are numbers that are in the area which is quite a ways with this though which is quite very

04:25.800 --> 04:26.750
similar to the lists.

04:26.790 --> 04:29.550
Both look same except for the commas.

04:29.550 --> 04:30.090
That's OK.

04:30.090 --> 04:32.570
But both of them get the answers just as you would access the.

04:32.570 --> 04:40.110
So if I say and B LSD of zero you would be able to access it the way I would accessit access the list

04:40.110 --> 04:46.980
or if I say the LSD of minus one even that would be very much perfect because that would be the same

04:46.980 --> 04:48.860
way as you would Z-list.

04:48.900 --> 04:54.020
So what the great thing about non-pilot was the list we discussed that last time.

04:54.030 --> 04:54.450
All right.

04:54.450 --> 05:01.650
So in the last session so we discussed that if in a less let's say LSD I would say LSD.

05:01.980 --> 05:08.340
If I had to manipulate each element of the LSD I would require a form or I would require a list comprehension

05:08.610 --> 05:16.080
where I would say LSD one would be equal to would be equal to would be equal to four for every element

05:16.170 --> 05:19.350
in LSD I would want to do some manipulation.

05:19.350 --> 05:21.520
Let me say elist sorry.

05:21.570 --> 05:23.940
Element Element Square.

05:24.120 --> 05:24.870
Right.

05:24.960 --> 05:28.710
So element Square is just one.

05:28.710 --> 05:36.960
If I print list one this would be done for a normal list but for a number and not so you can directly

05:36.960 --> 05:37.350
do it.

05:37.350 --> 05:38.730
Wait wait.

05:38.790 --> 05:50.480
As I told you I can have an umpire error by saying the LSD one can be equal to any LSD race do too.

05:50.700 --> 05:57.170
And if I print and play LSD one I would have the same hunch.

05:57.180 --> 06:01.530
So this is the great thing about an umpire idea with a list.

06:01.530 --> 06:05.740
Of course this is the first thing that we saw but there are huge.

06:05.850 --> 06:08.150
There are multiple things happening here.

06:08.220 --> 06:12.450
If this was the only thing that is happening of course we would have maybe we would have gone we were

06:12.450 --> 06:15.930
stuck with a list because you know B-6.

06:15.930 --> 06:23.710
But let's discuss two other major concepts where a number pi differs from a list.

06:23.730 --> 06:31.710
So I can say pi was our list or instead of say NUMP like can say and the addy was this list because

06:31.800 --> 06:36.220
and umpire is out of type NUMP or anybody.

06:36.240 --> 06:36.590
Right.

06:36.600 --> 06:37.880
So let me just call that up.

06:37.890 --> 06:39.920
Let me define this a month down.

06:40.020 --> 06:41.340
Runit shift enter.

06:41.340 --> 06:45.470
So you have a small topic out there in the area was this list.

06:45.480 --> 06:52.410
Now the first thing that I want to cover in a in the list is the memory consumption.

06:52.410 --> 06:56.160
So if I make it another one and let's say memory consumption

06:59.520 --> 07:06.630
between you know in first let's discuss in a list and then we'll discuss the memory consumption in a

07:06.960 --> 07:10.180
areas so of course I'll define this.

07:10.290 --> 07:14.430
This is a meltdown and to shift into.

07:14.520 --> 07:17.290
So that's a memory consumption in a list.

07:17.320 --> 07:18.960
And let me go on to say.

07:19.040 --> 07:19.770
OK.

07:19.800 --> 07:22.700
So how do I get the memory consumed by a list.

07:22.830 --> 07:26.950
Let's understand if I say from close up.

07:27.170 --> 07:29.680
Yep from Sis.

07:29.940 --> 07:33.950
I need to import Metford callers get XYZ off.

07:34.020 --> 07:39.110
So that is a model coalesces and in that Mondial that is a matter Calders get sites off.

07:39.360 --> 07:43.770
I'm going to call that gets I so when I refer to it when I recall that function I'm going to refer to

07:43.890 --> 07:46.860
it as just simply psych's.

07:46.980 --> 07:48.210
OK.

07:48.210 --> 07:54.570
Now let me say my list is already there my list is what my list is going to be my list if you remember

07:54.630 --> 08:00.830
is is already you know 24 12:57.

08:00.850 --> 08:01.290
OK.

08:01.330 --> 08:04.170
So you can just print it up for now.

08:04.330 --> 08:06.620
But don't do anything further.

08:06.820 --> 08:07.250
OK.

08:07.270 --> 08:08.580
Now this is my list.
