So now here you are saying how many times we're getting this forced, these ads, so message is having
to translate.
It is having to then message is having it translated as having it, then it is having I it is also having
I saw one one value is keep on driving over here.
OK, so at the end of it, what is the value in this.
This is Python hacking session when we are doing the review site.
Right.
So whatever text we were having, it did one by one.
We are adding it in this reverse order.
One one character by character is getting added if you get the output.
So now we hope that the output is very much geared at how many times the loop basically gets executed.
Right.
OK, now let's go ahead for improving this particular program by giving it a more input from the program.
What we have designed over here is having a string that is being encrypted or decrypted, which is type
directly into the source code as an assignment statement.
Right now, this is convenient while we are developing the program, but you shouldn't expect users
to be comfortable modifying the source code themselves.
So to make the program easier to use and share, you can modify the assignment statement so that they
call the input function.
You can also pass a string to the input function.
So it is displayed as a prompt for the user to enter a particular string to encrypt.
OK, now, for example, if we go back to our program, OK, over here, when we are giving this message,
we will remove this particular text which is appearing here, OK?
And here we would give, say, input in bracket, we say.
Single center message to encrypted.
OK, after this, we get this value in the message.
Now, we will not give this print come on, as it will just increase the line of code.
Then finally, we will decrypt this over here.
OK, so now when you run the particular program, it prints on the prompter, the screen that innovates
for the user to enter the particular message, the message that user will end up will be stored as the
value in the message.
And then when you run this program here, you will get that string to be encrypted.
So let us save this and let us try to run this particular program.
So now here it asks for us to enter the particular valley right now.
Suppose we say this is.
Fighting, hacking.
So whatever string you have under the same string, it is reversing and giving of the output.
Now, for example, you want to enter the string, so let us copy this.
And again, we'll go back here.
We will run the module now will face the same string that was encrypted to decrypt it.
So we press enter again.
We get the string in the decrypted format.
Right.
OK, now let us try one more piece of code directly over here.
We say print in bracket.
We use the land function we use here, C Biton again, we use a plus operator.
We use lenth again, we give Vitan and we close it so we get the Lenfest.
Well that is the six characters.
Plus we have already added one more six plus a total of this becomes us to it.
So what length of this plus the length of this we are getting at over here printed.
Right.
Similarly if suppose we see for example C is equal to zero, ok, we say while I is less than four,
then we are seeing print C Biton.
OK, and we make I it was too eye plus one.
OK, so when we type this, we just press once more and we get the value there four times, right?
Similarly, suppose we try to do is equal to zero.
We say another variable is equal to say pattern.
We see while the value of AI is less than five then.
OK, let's do one more thing I'll say I is less than five Colen, we have Mystikal and then we say spane
is equal to spam spam at the next.
OK, we are again adding this value.
Then we say, I was stop I plus one.
Then here we say print.
The value of spam sabrin spam.
So here we see getting one one value added.
The first thing is we had Python then in that we are adding one one character of this variable over
there for first time.
And that'd be next time by then, by B, B by the be all.
And then we have since we have gone till five and is not added.
If Stupples let us cooperate on this and here we will change this to six.
OK, now so here it is added all the values total at the end of it.
What it is going for six times.
Right.
So now we'll see some extra examples.
We will do it on reverse cipher, which will mean our concepts of remorse.
I feel very much clear.