WEBVTT

00:00.240 --> 00:01.830
So you have to.

00:01.950 --> 00:02.480
OK.

00:02.760 --> 00:08.330
So basically they're telling you to call Ryan footless card but this is not support input requests.

00:08.360 --> 00:08.970
OK.

00:09.290 --> 00:11.690
Just just give me a second one second right.

00:12.740 --> 00:18.340
So let's do one thing just copy this up real right as a programmer does not know it will not work book

00:18.680 --> 00:19.840
well for this.

00:19.910 --> 00:26.680
So what I can do is this particular column you can delete it later but for now go with it analysis and

00:26.710 --> 00:35.390
90 and let's say a new byte and find and let's say you know by example

00:39.950 --> 00:43.300
save it into the shape the body split.

00:43.390 --> 00:44.890
So Control shift.

00:45.170 --> 00:46.540
Then we'll run the cash.

00:46.650 --> 00:52.320
So if you see three come afore finally it splits it wherever there's a comma.

00:52.320 --> 00:59.090
But as you can see this 3Com come four in the list in the LSD that 3Com A-4 is a string.

00:59.100 --> 01:04.500
I need to convert it into an integer and wouldn't render into integers.

01:04.530 --> 01:14.400
So I'll say LSD of one is equal to do list comprehension for every element in LSD for every element

01:14.400 --> 01:15.150
in the list.

01:15.270 --> 01:25.050
I need to I need to have at least one integer of the element correct.

01:25.110 --> 01:31.220
So now if I control shift then if I run this out it'll be three come A-4.

01:31.820 --> 01:34.350
And it's not printing a list.

01:34.400 --> 01:35.850
I'm so sorry Prynne.

01:36.210 --> 01:38.260
Let's do one.

01:38.490 --> 01:44.920
So control of death an end to the shape of the Arey take come afore enter.

01:45.330 --> 01:50.280
So now you get a list of integers how to combine all these three together.

01:50.430 --> 01:53.100
So these steps how do they combine it in one.

01:53.400 --> 01:59.990
So I will say input dark split well suited for you read in it for.

02:00.210 --> 02:09.960
But then after splitting or trade I should this is a list of strings list of strings I should create

02:09.960 --> 02:20.200
the new list such that for every element in this list I should store the in of the element correct.

02:20.220 --> 02:21.350
This is what I need.

02:21.360 --> 02:25.980
So this is the entire thing you know combining second step with what.

02:26.160 --> 02:36.470
So I'll get here if I can torture caftan if I do that 3Com A-4 in the name list also each list not the

02:36.470 --> 02:45.730
list ones they control shift left and once again three four and you get a list of the row and column.

02:45.770 --> 02:48.820
Now instead of storing the list they can also do something like this.

02:48.830 --> 02:58.880
I can also say by by the property of the property of you know unpacking list unpacking I can unpack

02:58.880 --> 03:02.540
because you know there are two elements in that list I can unpack them into two variables.

03:02.540 --> 03:04.690
Let's say row comma column.

03:04.700 --> 03:08.090
So now if I print the roll these are two variables.

03:08.090 --> 03:11.560
I've got Roukema column which I've got from the user.

03:11.800 --> 03:12.200
OK.

03:12.230 --> 03:17.480
Now if we printed up and let's say Tricom or four right.

03:17.570 --> 03:22.330
I get it I get ruined the call that is 3 up 4.

03:22.520 --> 03:28.370
So this is how will we dealing with the entire example.

03:28.580 --> 03:29.040
Correct.

03:29.240 --> 03:29.610
OK.

03:29.630 --> 03:35.540
So this is about this is about getting getting the rule number and the column number.

03:35.630 --> 03:39.830
Now after getting the wrong number and the now for getting the number on the column number what we need

03:39.830 --> 03:47.510
to do is I need to I need to do though I need to create an ID number based on the number of rows and

03:47.510 --> 03:48.580
number of columns.

03:48.600 --> 03:51.360
Right but how do we create it.

03:51.360 --> 03:56.650
Now let me created or can I the ball once formal all you say can do that right.

03:56.810 --> 04:03.280
So I can say and be dark ones fill it up with all ones or you can fill it up with our zeroes.

04:03.300 --> 04:04.980
So that's OK.

04:05.150 --> 04:14.820
I'll fill it up with old ones and I need to I need to say we are ones and create an array by saying.

04:15.190 --> 04:20.460
In bigger ones and then pass your row in Column.

04:20.930 --> 04:21.350
Right.

04:21.350 --> 04:24.060
And this will be your and B.

04:24.140 --> 04:27.080
If you want you can put in in check.

04:27.070 --> 04:28.420
Correct.

04:28.460 --> 04:31.130
You don't need to print the row in column for no.

04:31.310 --> 04:33.060
Yes you'll need to print this control.

04:33.230 --> 04:41.190
And let's say three column or four enter or name is not defined because you haven't imported the number

04:41.380 --> 04:47.210
by import number by ass and these credit control your.

04:47.480 --> 04:49.320
So into the shape of the.

04:49.490 --> 04:52.530
3 come up for another.

04:52.630 --> 04:53.650
You've got the old ones.

04:53.660 --> 05:02.180
If you one day tape says integers you should say here comma needed equal do I and B correct.

05:02.420 --> 05:07.480
So that's about that's about all integers control chip left and once again if you want to check three

05:07.530 --> 05:10.150
come four and that's it all once.

05:10.190 --> 05:15.410
Now I wonder to this problem that is the problem is what I want to populate each value according to

05:15.410 --> 05:17.060
rule number in column number.

05:17.120 --> 05:17.660
So what should do.

05:17.930 --> 05:29.630
I can I do it for I in range but I in range want I can go from I can go from from the first.

05:29.690 --> 05:30.280
Let me go.

05:30.290 --> 05:31.200
Let me read.

05:31.310 --> 05:33.850
I will be I to the rules.

05:33.890 --> 05:34.250
OK.

05:34.250 --> 05:37.020
Let me read up till the Leno.

05:39.030 --> 05:41.970
Or let me say.

05:42.180 --> 05:47.950
See you already have the wrong number in the row so you can disprove this rule and range rules.

05:48.590 --> 05:50.540
Ok in that what do I need to do.

05:50.580 --> 05:52.610
And then for Jane.

05:52.710 --> 05:55.790
Range number of columns.

05:56.160 --> 05:56.520
Correct.

05:56.580 --> 05:59.360
I am right reading all the columns.

05:59.370 --> 06:05.650
All I need to do is I need to say the element is off.

06:05.880 --> 06:07.060
I call my g.

06:07.470 --> 06:13.200
That is the wrong number a comical number that particular value should be equal to.

06:13.250 --> 06:19.390
I multiplied by G because it has the wrong number multiplied by the column number.

06:20.070 --> 06:25.050
All you have to do is let's finally let's print.

06:25.490 --> 06:26.100
You don't.

06:26.300 --> 06:31.530
You don't need this one anymore you don't need to print this because even one or once I just want to

06:31.530 --> 06:32.200
switch.

06:32.550 --> 06:32.930
OK.

06:33.000 --> 06:34.560
So control check often.

06:34.890 --> 06:40.560
Let me say three come four enter there you are.

06:40.770 --> 06:44.990
So you get an idea of four according to my question.

06:45.000 --> 06:50.890
So if I have a bigger Ira let me say five common nine.

06:51.460 --> 06:51.840
Right.

06:51.870 --> 06:58.560
So the entire This is this this will be random What am I to recall but what does rule number 0 1 2 3

06:58.560 --> 07:07.430
4 4 and column number is 0 1 2 3 4 4 4 is up 16 percent.

07:07.520 --> 07:08.030
Correct.

07:08.090 --> 07:15.630
So that so you create you create a question out of that one Zenin we got in we don't see those.

07:15.650 --> 07:21.610
So I hope you understood this particular concept of creating threes and you know using them.

07:21.620 --> 07:27.640
Now we are going to but still we haven't done any number by based arithmetic operations.

07:27.710 --> 07:33.230
This is these are operations which were already done using bite that you have rated it over each roll

07:33.730 --> 07:34.520
over each.

07:34.660 --> 07:36.670
The number is can be itself.

07:36.680 --> 07:40.860
You can do some operations so that we will do it in the next session.

07:40.980 --> 07:41.480
OK.
