WEBVTT

00:00.240 --> 00:03.160
Basically how many elements are there in x.

00:03.210 --> 00:07.650
So those many times so Lebovitz for every element in range.

00:07.710 --> 00:16.570
I just want that for every index I would want said to contain X of my class Y of-I.

00:16.630 --> 00:16.950
Right.

00:16.950 --> 00:23.800
I just want to add each element of X and Y and I put them in a new list that is set right.

00:24.000 --> 00:26.090
So that's the in.

00:26.160 --> 00:31.100
So now I can just calculate the time after getting the point in motion either.

00:31.140 --> 00:31.820
Right.

00:31.860 --> 00:35.470
So I can see all CIOs set is equal to x.

00:35.490 --> 00:39.560
So now I can just calculate the time once again and say time that time.

00:39.720 --> 00:48.000
And that was written to me what it returns to me I'm going to store that in T-2 or that's going to be

00:48.360 --> 00:49.810
that's going to be T-2 out here.

00:49.920 --> 00:53.010
So can you tell me what would be the time taken.

00:53.010 --> 00:59.550
Do you know of you're creating a list in Python you're creating another list and you're creating a third

00:59.550 --> 01:02.430
list which is which is an additional tool.

01:02.430 --> 01:07.760
So you're doing a lot of manipulation on the list and you're calculating the time taken at the start

01:07.860 --> 01:10.860
and at the end of doing this entire manipulation.

01:10.860 --> 01:18.240
So all this function is going to the tonus all this function is going to return is T-2 minus T-1 that

01:18.720 --> 01:28.710
it's going to return the time taken for you know basically how much time you took to finish you know

01:28.710 --> 01:32.400
at the end time minus the time taken at the start.

01:32.640 --> 01:37.950
So now I'm going to get the weapon which is the calquing time.

01:37.950 --> 01:39.770
That's number one in number.

01:39.790 --> 01:41.160
How do I create.

01:41.520 --> 01:43.300
You can of course create within that.

01:43.530 --> 01:44.220
As I told you.

01:44.310 --> 01:50.640
But a better way to create it without using less front now is you know again I'm going to time that

01:50.640 --> 01:56.460
time first before starting up with a number sorry and then we're here I'm going to say x is equal to

01:56.460 --> 02:02.880
instead of using the range function I'm going to use another function and Bedacht that is an idle function.

02:02.910 --> 02:11.370
There's another method in the library and that mattered or that function is called as you can have a

02:11.370 --> 02:12.700
look alien.

02:12.750 --> 02:14.200
It's called as an image.

02:14.350 --> 02:20.880
And then of course range also requires a particular you know you can given you can given certain values

02:20.880 --> 02:24.490
out there you can you can just say what is the size of the vector that you require.

02:24.660 --> 02:33.340
Now as we toss it again you create that y is equal to that range constant.

02:33.720 --> 02:38.560
And let me say T-2 is equal to.

02:38.700 --> 02:41.400
OK sorry I need to say is dead is equal to.

02:41.400 --> 02:44.190
I can directly do X plus light.

02:44.220 --> 02:47.900
That's the beauty of not by without going into a 4.

02:47.970 --> 02:48.450
Right.

02:48.630 --> 02:57.000
So T-2 will be equal to time that time once again after I give the entire thing done.

02:57.320 --> 03:04.740
So now all I have to do is turn t2 minus minus 1.

03:05.400 --> 03:12.840
And with this done what I can do is I can call these functions anytime I want.

03:12.840 --> 03:13.230
Right.

03:13.230 --> 03:15.710
So I can call them any time.

03:15.720 --> 03:17.100
So how do we call them.

03:17.100 --> 03:19.100
I'm going to say import time.

03:19.110 --> 03:27.250
And let me say I'm going to call all these functions I'm going to call these methods and I'm going to

03:27.250 --> 03:28.150
call them.

03:28.150 --> 03:34.850
So when I call them let's say the Kal time Pie-Wagon and I'm going to call the Kal time.

03:34.850 --> 03:35.540
Right.

03:35.770 --> 03:39.790
So both of them are going to return to me some values which I'm going to printed up right.

03:39.790 --> 03:43.040
So that's the time which will return for both of them.

03:43.060 --> 03:44.250
I trained them both up.

03:44.380 --> 03:45.670
OK let me run it.

03:45.910 --> 03:47.800
Oh it saves you a Boyne's you.

03:47.920 --> 03:48.220
Why.

03:48.220 --> 03:51.820
Because the time taken is very very rarely very less.

03:51.950 --> 04:05.410
And that's that's quite that's sartain to show out here because it shows it more accurately just a second.

04:05.410 --> 04:09.100
So what we can have is let me just do something.

04:09.100 --> 04:11.260
What are we going to do was just sprint

04:14.320 --> 04:17.370
let's print both of them together first and

04:22.130 --> 04:25.860
I'm going to say come on and you called them once again.

04:25.910 --> 04:26.240
OK.

04:26.240 --> 04:33.260
So Peyton will still take some time as you can see but NUMP is too fast.

04:33.290 --> 04:37.320
If you keep running it again and again you will get different time.

04:37.340 --> 04:46.360
So what I can do is I can just put them in a for loop and just check it up for I in range 10.

04:46.890 --> 04:47.420
OK.

04:47.540 --> 04:51.520
I want to print whatever you do.

04:51.530 --> 04:54.060
Numbers are so fast that it's always going to be weeks.

04:54.170 --> 05:00.260
It's like as though there's hardly any time numpad is that you can have a look the number one whereas

05:00.260 --> 05:07.590
the other one still takes a few seconds to do or a few milliseconds to get things done.

05:07.580 --> 05:15.220
So this is about this is about number three so you can have a look how time efficient a number that

05:15.220 --> 05:15.920
is.

05:16.160 --> 05:20.320
So why are are time efficient and that's the beauty of.

05:20.880 --> 05:22.340
That's the beauty of an umpire.

05:22.350 --> 05:28.390
So numb players as we saw a number of areas are time efficient.

05:28.430 --> 05:29.910
That's number one.

05:29.990 --> 05:34.970
And they consume much less space.

05:35.930 --> 05:45.170
So these are the two main differences between now play areas and analyst because of which non-pay is

05:45.170 --> 05:46.090
here to stay.

05:46.100 --> 05:46.670
Right.

05:46.820 --> 05:47.180
Think.
