Then we start for Lupul, that outrage over the message and the outrage over the characters in the message
and inside this loop, the privileges, the column and delivery of this sort concatenated symbol to
the correct string and the plain text SDR list.
Now, at the end here we are concatenating here in default, plain text as dire at the next column plus
is equal to you.
Like basically concat is a symbol to the string at the index column in the plain text list, because
the each string in the plain text represents a column and then at the next line we add one to the column
there.
So we are basically incrementing, incrementing the value of column so that the next iteration of the
loop symbol will be concatenated to the next string in the plaintext list.
Now we have Handal incrementing column, but we will also need to reset the variables to zero in some
cases.
Now, to understand the code that does that, we will need to understand a boolean operator's first.
Now, coming into the Boolean Operators', we basically compares the boolean values and evaluate to
a boolean value the boolean operator's that is and and all can help you from more complicated conditions
for if and why the statements and the operator connects to explanations and evaluates to true if both
expressions evaluates to the operator, connects to expressions and evaluates to true if one or both
are true.
Otherwise, these expressions evaluate false understandings in a more meaningful format.
Let's go back here and we receive 10 more than five and do less than four.
This will give you the value too.
But if you certain more than five and four not equal to four will give you false because your one expression
is true.
Second is false.
In this case, both the given expressions are true.
Now, if you ever forgot how the balloon operator looks, you can just have a look at it through people,
for example, which will give you a different combinations of the boolean value evaluated to based on
the operator's which are used.
For example, if we say through and through, we'll give you proof if we see true and false will give
you a false.
If we say Faustus false.
Second is still false.
If we say Waterfall's still, it is false.
So in an operator, only when both are true, it will evaluate true.
Similarly, let us see how the operator interacts.
If we say 10 is more than five and we use or four, not equal to four.
Now in this case, one is true, one is false.
The expression will give you two.
If we say ten is less than five or four is not equal to four.
Now, in this case, both are false.
So the value will come to force again here.
If you want to know the truth, table four or if you see, for example, true or true, we'll give you
two if it goes true.
First one second one.
False bill.
It is true if you say false or.
To first one is false, again, the straw still it will be true only when both the expression evaluates
to false this order comes to force.
Other than that, everything would be true.
Similarly, if you want to say, for example, say not ten more than five is false or we say not in
less than five.
This is true.
If we say not false is true.
If we say not not false, this is also false.
If we say not not not not false, this will come true.
You can use multiple operators and not operate operator truth table.
If you want to look at it.
If it is not true, will be false.
If you say not false will be true.
So this is all we have seen the truth tables example how the value will evaluate.
So similarly it will happen to how for loops let you do the same task as Devi Loops but with less cords
and the and then the operator also lets you shorten your coat.
Now for example, if you try to enter the particular text, like if there is more than five, you again
check.
If two is less than four.
Sorry you made a mistake.
It is if then more than five columns if two less than four column.
We say Putin fighting it fight night.
If we say if then more than five and less than four.
We say
fighting in principle.
But this is decreasing the lines of course that you are writing them.
No, you can also replace an offensive statement with an auto operator, for example, if we try to
see for not equal to for one condition, we are saying print see Python, we come out here and the next
statement we give here.
Elusive, then more than five.
Let's check out for naughty little for all we see Prince, see Python and and save 15 more than five
miles from Biton.
So here again, we get the Python printer.
Similarly, if we try to change this, we save for Synodical to four or ten more than five.
Then we give your print, see Python.
So we are replacing the offensive also with the help of our operators now coming to the order of the
operations for the Bolian operators.
Now let's try and do the same.
Not false and false will give you false.
Or if you say in brackets, not false and false will give you true.
In this case, not in this case.
The first line of code is not false, is evaluated.
So the expression becomes true and false, which evaluates to false.
And the second line, the parentheses are evaluated first.
So even before the note operator, so false and false that is evaluated to false.
So the expression not false becomes true.
So now coming to adjusting the rule in the column variables.
So coming back to our program here, we know now how the balloon operators basically work.
So now there are two cases in which you will want to reset the column zero so that the next iteration
of the loop, that the symbol is added to the first string in the list in the plaintext is still in
the first case you want to do it of.
The column is incremented past the last index in the plaintext.
And in this situation, the value in column will be equal to number of columns that we have already
passed to it.
Second case, if it is a column in the last index and is all is pointing to a rule that has shaded box
in the last column, as we have seen in the manual.
So in that case, also, you want the value of the column to be incremented and rules.
So these two cases are why the condition that we have given that that is over here in this particular
column, if column is equal, the number of columns or column is equal, the number of columns minus
one and two is more than equal to the number of rules and minus the number of sheet it looks.
Now, although this is looking a very big and complicated explanation, remember that you have break
it down into smaller parts.
The expression one is column is equal to number of columns which exploded.
Column variable is based on an index range and second part of the expression checks whether we have
a column and or index that is a shaded box.
So if either of this expression is true, the block of the court that executes will reset the column
to the first column by setting it to zero and you will also increment the rule.
So after this, you have finished looping over every character in the message stream and the plaintext
list string have been modified so they are not decrypted order.
So let's bring in the plain text SDR list are joined together in the last statement that is using the
written statement here, which return the string that is decoded messages your function returns and
add the first line as you have done for the earlier one.
Also, the first line of which our program would execute is this part of the code after the important
modules and the execution of the statement is the IF statement which will execute.
So as for the transposition encryption program, Python checks whether this program has been run by
checking whether the name variable is set to the string value mean.
If so, the code executes the main function and that is how we get the output of the decrypt message.
So that's it from the session of decrypting your transposition cipher.
We will continue with the next issue.
OK, that's it from the session.
Thank you very much.