1 00:00:00,490 --> 00:00:09,250 So now over here, say the next thing, we are creating another definition for saying get English. 2 00:00:11,020 --> 00:00:18,970 Rhode Island, and here we are passing messages still as the parameter, OK, now in this function, 3 00:00:18,970 --> 00:00:29,500 we are defining our message SDL is equal to our message, SDR not in uppercase, and Maceda still is 4 00:00:29,500 --> 00:00:34,270 equal to remove the known. 5 00:00:34,990 --> 00:00:38,080 Now here we are also creating this remove known letters. 6 00:00:38,400 --> 00:00:46,270 So remove long letters or letter last year and passing this message is still in that. 7 00:00:46,930 --> 00:01:00,970 And then we have the possible word SDR that's equal to our messages are dot split the method and then 8 00:01:00,970 --> 00:01:11,630 check if the possible word SDR is equal to open close bracket. 9 00:01:12,070 --> 00:01:14,280 Here we are returning to zero point zero. 10 00:01:14,290 --> 00:01:15,550 That is no votes at all. 11 00:01:15,700 --> 00:01:24,790 So that zero point zero in this case, then we check if the matches SDR is equal to zero, then four 12 00:01:25,270 --> 00:01:30,460 seven one in the possible war SDR. 13 00:01:33,740 --> 00:01:45,350 OK, he'll be right down, and if same old one in now we have this created Constant English War SDR, 14 00:01:46,190 --> 00:01:49,700 if that is it, then we are seeing much as a start. 15 00:01:51,030 --> 00:02:00,270 OK, should be equal to or plus is equal to one in this case and in the for loop, we are seeing record 16 00:02:00,540 --> 00:02:01,860 converting to float. 17 00:02:02,340 --> 00:02:11,700 The value of majesty are divided by the length of possible war STF. 18 00:02:13,030 --> 00:02:13,480 OK. 19 00:02:14,450 --> 00:02:18,150 So once we have done this, we have written this value here. 20 00:02:18,470 --> 00:02:25,070 The next thing we are supposed to define, another function that we have called here, that is remove 21 00:02:25,100 --> 00:02:27,020 non letter. 22 00:02:28,060 --> 00:02:38,270 SGA and this will also take up my suggestion as the barometer, and here we are seeing letters only 23 00:02:38,290 --> 00:02:51,880 SDR that's equal to Blang and for Simbel one in the messages we are seeing if our symbol one team. 24 00:02:53,040 --> 00:02:59,760 Now we are having another this constant that we have used here, we just let and space year, so we 25 00:02:59,760 --> 00:03:07,710 are checking here that if symbol one is in letters and space as we are, then we are seeing letters 26 00:03:08,940 --> 00:03:15,470 only SD are dot append novelly of symbols one. 27 00:03:16,230 --> 00:03:23,610 OK, otherwise we are giving here a written statement dot joint. 28 00:03:25,230 --> 00:03:33,870 Letters only, Esther, OK, and after this, the next function that we are defining is say is English 29 00:03:34,680 --> 00:03:41,010 Chick OK, which is going to be almost suggestive then. 30 00:03:42,020 --> 00:03:46,580 The next thing is seven percent estimate. 31 00:03:46,970 --> 00:03:56,990 Now this we are defining as 20 and say little percent are, we are defining our security five and we 32 00:03:56,990 --> 00:03:59,840 are giving here the definition of functional here. 33 00:03:59,840 --> 00:04:05,480 By default, we are saying that 20 percent of what must exist in a dictionary file and eighty five percent 34 00:04:05,480 --> 00:04:11,090 of all the characters in the message must be Letrozole spaces, not punctuations or numbers. 35 00:04:11,360 --> 00:04:16,580 That is why we have given them the values constant in our definition of the function. 36 00:04:17,420 --> 00:04:26,090 Then here we are having their votes match STF is equal to we are using here to get now we have this 37 00:04:26,090 --> 00:04:28,030 English word count method defined. 38 00:04:28,370 --> 00:04:31,150 So let us call this here to English work out. 39 00:04:31,490 --> 00:04:38,290 And in that we are passing the message just as diplomatic, then we are multiplying it by one hundred 40 00:04:38,570 --> 00:04:42,590 if that is more than equal to we are using here the word. 41 00:04:43,810 --> 00:04:44,590 Percent A. 42 00:04:45,370 --> 00:04:46,510 OK, then. 43 00:04:48,130 --> 00:04:57,460 The next thing we check over here is a letter SDR is equal to find the length of what we're using here. 44 00:04:57,490 --> 00:04:59,470 Remove the letters. 45 00:04:59,860 --> 00:05:07,390 So let us call this function here and get the length of this by passing messages to it. 46 00:05:07,870 --> 00:05:18,850 And then you have the message Lettow percent SDR, which is equal to convert to float the value of normal 47 00:05:18,910 --> 00:05:26,640 at Oresteia, divided by the length of messages are multiplied by a hundred. 48 00:05:27,190 --> 00:05:31,870 And then you'll see letters match. 49 00:05:31,870 --> 00:05:43,810 SDR is equal to our message letter plus Investa if more than equal to say, Lettow percent. 50 00:05:46,390 --> 00:05:50,140 STF, OK, then we are seeing written. 51 00:05:51,320 --> 00:05:59,740 Your Majesty, and let us much SGA. 52 00:06:00,520 --> 00:06:03,440 OK, that is where we are saving this. 53 00:06:03,810 --> 00:06:10,260 OK, now we are going to save this in a drive intermediate and let's give this as name. 54 00:06:10,280 --> 00:06:18,290 I see check English, but by OK, and we are saving this. 55 00:06:18,500 --> 00:06:25,790 Now, this file basically will not run over here because we need to import this in some other file to 56 00:06:25,790 --> 00:06:27,860 use the method that this is English. 57 00:06:28,730 --> 00:06:35,630 OK, so this we would use it and try and create another fight and we would create a program to Hokusai 58 00:06:35,630 --> 00:06:41,210 or transposition cipher and then we will use this and then check the output, how the file executes.