So now returning to our program back here, we check that weather, this string that is symbol type
is another symbol of the environment, is another symbol of strength.
So if the fire is kind of a symbol, stip particular variable, the execution, the blog that follows
after this particular line of particular symbol, and if it isn't, then the execution skips to the
instant end of the block of the end spot over here.
That is, if this is not true, then this whole thing will be skipped and will be going to the Ellsburg.
So the Saiful program needs to run different depending on whether the symbol is in the particular given
symbols it.
Now, here we are also using another method that is final.
Now this.
Find the index of your symbol type string where the symbol is or the SVM is.
So over here we are seeing the index is equal to in the symbol types dot find the index of a slide.
OK, so this basically includes a methodical method of just like functions, except they are attached
to a value with a particular period.
The name of this method is fine and it's been called on string store or string value stored in your
symbol type.
OK, so most database like strings have metal to define.
Metal takes one argument that returns the integer index of where the argument appears in your particular
method string.
Now, just to find out this find in the interactive Shellback.
We'll go back there and here we will write down something.
See Titan not C find.
And Brackett, we give Sivi, OK, so the index of VII's one.
Similarly, we see see Biton dot find in Brakhage views here.
See how the index of always is zero.
For example, we use here standard variable that is equal to, say, Biton value and now Veals span.
Both say fine, we give here, ok.
That also gives us the value for.
So now here you can see we have used fine method to either on string or either on a particular variable
containing string value.
So remember that indexing in Python starts always with zero.
So when the index return, my defined method is for the first character as a string, it is zero.
And if the string argument cannot be found, find method will return.
An individual is minus one.
For example, if you see, for example, in this under did not find the one which is not there in our
particular string.
So we get the was minus one.
So again, here you can notice that find this also case sensitive.
For example, if you try to do something like say, Bitan DOT.
Fine, we give capital, we're having small people.
We're giving the capital, be it again gives us minus one.
So if you pass something which is in a different case again, you will get not get the value found with
the help of find a method.
So the individual that find that return or finds method returns will be an index of the first character
where the argument is found.
OK, now, again, for example, we see Biton.
And your views you find in Brakhage, we give your all in, but it finds for the first character, that
is all so also for itself, right?
Similarly, suppose you use your Biton bitin dort find we give your B which is coming.
I actually give you the first appearance.
That is the zero, the first character.
OK, so define string method is like a more specific version of using the inoperative.
It not only tells you whether a string exists in another string, but also tells you whether it is there
at a particular which position.
So encrypting and decrypting the symbols.
So now let's go back to over this overprogrammed and over here.
We have understood the if part, the elusive part, the Ellsburg and also the operator and string metal.
So it is easier for us to know how the rest of the program looks to see the Saiful can only encrypt
the Crips and Bloods that are in the symbol said that we have given that is over here.
OK, so before running the code, the program must figure out what the symbol is in in this symbol said
that you have created.
Then it can find the index where the symbol is located and the index return by define is stored in a
particular symbol index.
Now that we have the current symbol next door, the variable, we can do the encryption decryption of
it.
So the seasons for at the key number to the symbol next to encrypted or subtract the key numbers.
Now, for example, if you see the value stored in your translated SDR or the translated variable,
it is the index of your symbol type of the translator symbol.
So after this, depending on your mood type, if it is encrypting, we are adding value to that index
and if it is decrypting, we are subtracting the code value, which we have that is 13 from the symbol
index.
And then we are checking here.
If it is more than the length of of a symbol, then you're subtracting the values.
If it is less than zero, that is, if it goes in the negative, you are the value of similar things.
And at the end you are simply printing the value of what is the translated estimate of your values.
So if over here suppose you are giving the values that is, and we are also copied down the same text
that is being printed using our copy matter in this way, we have seen how the particular program executes
from the start to the end.