So those in this room are going to talk about this troops first we we'll discuss how to paint one 200
numbers.
So you're going to see point one and then bring it to.
And so you need to type of 200, so this is very, very time consuming and it's a waste.
So what you can do is you can look over this one 200 numbers using these groups.
So Frostrup, I'm going to say, is for the Syntaxes for Iterator.
You need to specify one element that will loop over from one to hundred numbers in the first loop.
It will take the value of a statement.
And the second thing to like the very second and third element and so on, we need to sit in instance
for membership operator.
And what we want to do is we want to switch with the range of zero to 100.
So what I'm going to do is I will create a range of numbers and I will say for I in this range, it
means that you can move forward this range of numbers each time, one at a time, if you want to.
You want to put the Koran and then you can see there is an indentation.
So for the loops, you need to follow this into the general space or with the further intention is for
spaces or one tab space.
So you need to separate it.
So here's what it's going to do for in 200 hundred.
It's going to execute these many times until I ranges from zero to ninety nine because this is at Kuzu.
So I just sell one, not one.
So it will first create the numbers from zero to hundred and then I will look for from first I will
I use going to take value of zero and then execute this statement that is inside this.
So we have to specify the current and we are given the tapestries.
If you did not go to space, I mean the four internation, you'll get an error.
So this print statement comes under this.
So at the first iteration I take the very zero and execute this code, which is print of it.
So zero will be printed.
And in the second iteration it takes the value one and it gives this print of which is one.
In the same way it will loops over one hundred and that one, not one, it will exceed this function
does not get executed.
So let's run this program and see what it does.
And as you can see, we have a printed one, two hundred numbers, so I hope you have understood this
group.
So we just sing for I encourage you to come out, not one.
This rain specifies the numbers.
And each time we out of a group is good, execute the eye is going to be incremental.
So now that's a sample, let's say a few numbers called.
And few strings.
So these are the elements of this.
So how you can report these realities, you can just delete this range and you want to search for iiNet.
So now I take the element of zero to sixty seven and it's going to be Prenter and then six nine eight
nine.
And then these things for each time of this iteration, these groups will get executed.
So let me bring this.
So as you can see, uh, situation and know the contents of this list, another way you can rupee's
you can specify the range range of this stuff you need to specify cover, rent offer.
So the offer is one, two, three, four, five, six.
So six from zero to Lentol six.
That means this range reduces the values zero.
One, two, three, four, five.
So these are the six elements and you can just sit and love it because it takes the value indexes.
So you to say I love it.
If you did not say I, it was just one, two, three, four, five numbers.
So, ah, so we need to warn we need to bring these elements of this list of I so if you bring this
up, look at the elements of this report.
So this is the best way to treat all the or that alleged in a previous way.
That is Farinelli.
It's not that much helpful because it's either to point to this six old element.
So you cannot do some calculations if you want to.
If I pointed to the territory bit.
So we need you to make it pointing to that nexus of these elements of this list, and then we we can
just cut it off.
So this is the one Farrukh.
And next to one is I'm going to go this way.
So the syntaxes while condition while.
True.
So let's let's take an example here is equal to zero.
So this looks indexes while condition and then as you can see, for who to enter a condition automatically
happen.
And the first piece has been added.
So you need to go the gap for spaces after this work addition to include the statements under the wire
loop.
So while condition and this condition should be true and why this condition is being to to these statements.
But interfer, so this condition, Litsa, here less than relevant.
So what you're being is Don Lemon, we are going to print very of you.
So let's go and run this.
So as you can see, there are infinite number of jurors because the value of you is not changing here.
So.
It has been struck.
All right.
OK, I will say, no, I really.
All right now.
That's of introducing somebody.
All right, now I'm going to show you here.
I don't know.
It's.
All right, now I'm going to show you here, so we are not going to change the values of here, that's
why it's this condition is forever true, because you don't even know.
What I'm going to do is I want to say this is equal to one.
So I'm no incrementing yavor.
So now it will print from zero to 10.
Let me run this.
So now if I run this one, you'll get the output of zero to 10.
So because you're using truanting and it is close to this statement, that's a digital print often.
And then you press one which changes the value from 10 to 11.
And the way it is done is goes to level, which is fast because level is equal to the run rate.
That's what, uh, this function gets exited.
So this is a wide loop and I'm going to do this and let's say it is equal to and B is equal to fight.
Now, another loop.
We are going to see if.
So if we need to set conditions, if we agree, then B, then need to put the current and then we need
to write some statements.
So if you it, then we want to perform some task so you can perform this task here.
Let's say we are going to print is greater than.
So if you agree to them, we are going to print this and let's go ahead and run this.
Frequency is greater than be, so we can also put a list cross to say that print is less than.
So if you go ahead and on this episode, this one.
And run this one, so it is bigger than admitting the value of here to pre.
So now you're saying it is less than week, so now the situation is what if you have more than two conditions?
So here we are taking on two conditions.
Weather is greater than we ought to be.
So you can see it if.
Is it easy to beat so this equals two will compare the actual value of here and B, if both are equal,
then only this statement gets ridiculous.
No, I want to say here is equal to.
And you can also put another ayliffe, um, yeah, as then be.
It's a.
Finally, you can put the earth's crust.
So here's what we're going to do is we are going to check one condition here is that rather than be
if that condition is true, then it will print this article.
This print statement is going to be and if it is if this condition fails, then we check this one is
to then this statement gets decrypted.
And even if their condition fails, then it will come to this statement condition.
Yes.
Then if that is true, then it would get this statement that executer and if these three conditions
first, then this will get executables elss other than our conditions, accept this trip.
So now let me put it to fight until this group and run our program will get Aztecas to be because this
condition has been satisfied as to and this treatment has been executer our to is equal to minus one.
So minus one Allosaurus or less than five.
OK, just we are not going to in this nothing, so just this one year, less than a three.
It will not nothing.
So as you can see, so these are the basic groups you're going to encounter in normal Python programming,
and we also develop some tools in the section in this course, only in particular section.
So in that section will be using the lot of loops for loops and etc..
So I hope we have understood, even though this section sounds confusing in the practice section or
in the developing two section, you will get so much comfortable.