Now, when the full time the program execution goes through the particular loop, the key is still set
to zero.
And over here, if you look at the program initially, OK, now after this, the ciphertext in the messages
still is decrypted with the key zero.
Now, of course, is zero, is not really your messages are just decrypts to anything else apart from
the exact text.
Now, the code inside the fallout of after this.
OK, now over here is basically similar to over see the cipher program that we have done now over here
after the next iteration, the set to one for the decryption.
So in the first argument where the range should start, the second argument is where the range can end
up.
So over here, you can also give two arguments in the particular range, which will be separated by
comma.
Now, for example, if you want to try it out, you can go back here and let's try it out in the interactive,
shall we say, for Iven in C range, we give your from Poolesville seven and for that we would put in
the value of Iven.
So we get the value from that starting point as to when it is ending at 6:00 because we have given to
Tacoma seven, so the variable, Ivan, over here will be the value from two, which is including two
up to the value seven, but not including seven.
So if we move on to the decrypting the message, but again, we'll go back to our program, not over
here, the next for Loop, where we are creating the translator D'Astier variable, which is attached
to blank langstrom because we would want to add the values which is decrypted in the translated STF.
OK, so over here, the currency will be added to the decrypted text in the translated Ostia from the
last iteration in the loop, after which we have the next that is before SVM in our message.
Still, if the symbols or if I may never see Monastir, we are finding the particular symbol values
over here.
We are basically looping through every symbol in this ciphertext, the string that is stored in the
particular messages.
So on each iteration of this loop, we are checking whether this symbol exists in December last year,
constant variable and if so, we are decrypting it.
OK, so then basically we subtract the USDA from our symbol indexed to decrypt it.
Now, after this, if we just see the next call with the subtraction operation because your translated
X to become less than zero and require us to wrap around.
So the symbol constant when we find the position to the characters in our SYMBOLISTIC to decrypt, we
check for this case.
OK, and if translated is the index is less than zero over here, then it can be modified.
So we see the translated into X is equal to the index value plus the length of over symbolistic basically
upending the values at the end of the translated into X.
So moving to the next one where we are seeing here that translated Asgeir is equal to translated estar
plus the value of symbol that is a spy.
OK, so here we are, just adding the unmodified symbol to the end of the translated Istria.
If the value was not found by in the Stajcic, after which we are basically using the formatting or
string formatting to display the key and the decrypted message.
So when we are seeing your putting key value hash percentage, one percent is percentages and the value
of the value of translated FTA, the argument over during the print function calls is a string value
that uses this string.
Formatting also calls your string interpolation.
So the string formatting with percent is text places one string inside, another one.
The forced percentages is a string gets replaced by default value in the parentheses at the end of the
string.
So for example, so now we can try out some string interpolation examples in the interactive shell.
For example, if we write down over here, say hello, placenta's exclamation mark percent.
So close this, then we write down here, see Biton and we present there.
Hello, Python printer.
So after Python we get the exclamation mark because here we are saying that the string should be printed.
Similarly, if we try out something like say hello, a space, then A plus C python, then again, a
plus an exclamation mark.
So we are going to get the same output, but in a different way without using percentages.
Similarly, if we see no percentage as.
Eight, the percentage is that it the percentage is close this, then he'll be right down the values
which we want to substitute, that is see dog got that.
So will get the dog eat the cat that ate the rat.
So everywhere the walls automatically get substitutive.
Right.
So in the first example that we have seen here, the whole spring, that is the python is inserted into
the string.
Hello.
OK, it looks as though you had concatenated be part of the string.
The four percent is with the interpolated string and the part of the string after placenta's.
So when you interpolate multiple strings, they replace each other in the particular order.
String formatting is often easier to type than the string concatenation using a plus operator, especially
for large strings.
And unlike with the string concatenation, you can also insert the long string values such as individuals
into the string.
For example, if you want to try it out, something like say percentage F higher percent.
S.
Highs and lows this year.
I don't see John and say fifty to fifty three, so we're inserting that integer value as a spring.
OK, or for that example we say Jon Plus C had concatenated say fifty three again concatenate.
And end it here, you will get an error because you cannot convert an integer object to string implicitly.
So in the first one, the 53 integer got inserted easily in the end to the string without any issues
when we were using the interpolation.
But what when you tried to concatenate the integer, it will give you an error.
OK, so now if we move on to the print value that we had in our particular program of hacking through
the cipher.
OK, here we have used this string formatting to create a string that has values in both the key and
the translated variables.
OK, because the key stores and in better value, we'll string formatting to put it in a string value
that is passed to the print command.
Hence we will get the key value also printed as a normal string value without any errors.
OK, that is all.
We have created a hacking program for the cipher.
So in this way we have seen one example of hacking losses.
A cipher.