The next part are loops for example you want to print everything out that is inside of you.
All you want to do something just some times again and again you can do it.
And we did you ever sing besides our names list.
And a bird or two different kinds of flu.
In our story we just talk about this follow up because a for loop is basically your Cnut's go to if
you want to print something it.
There are different kinds of loops it's a set.
But the for loop is like 95 percent Zulu you see.
And in our flat out to Torre it's also just you follow.
If we won if we need one.
So you basically say if you want to print something or at whatever times you say for him to start to
fall to make your brackets and then you like a new integer and it works I would say zero.
So this is all a variable name and that's just Berba declaration as we know it.
So we make a new variable.
And this is our starting point.
So we give it all four different entries and our first entry is our starting point and we do it by building
a new variable.
And we start at zero.
Then we do a semi-colon and our second entry for all fold up is how long or loop should run.
So how many times it should run and we say as long as he is smaller than let's say two.
All right.
And the next thing is because we need to change.
So it can become two.
So it doesn't run always.
So you say I am plus plus and this plus plus basically means we we at won every round.
So
I get big Every time our code gets executed and then we make our
shop brackets.
And here we print something for example we just print it.
Hi folks.
Just a basic example.
And we take all this print and we click Run got it two times.
So we talk about it again so this STARTING POINT we starting in 0 0 we want to run it as many times
as long as I.
It's more than two.
And if the code runs we want to make I want to add one.
Why this.
These two Plus is this basically means I equals one plus one.
So we give I knew way.
Well every time our cold has run so we can make a child.
So this is like the long version is the short version is just a plus plus plus plus.
So we should start at zero.
Then the loop checks if it is smaller than 2 0 smaller than 2 then the Calderon's then I gets bigger.
So we've got one.
It's zero.
So the small of the two we printed all first time.
Then I get SPia I asked no one because we added one here.
Remember this plus plus this equals plus plus plus one.
So that's one to itself.
So we've got one now.
So I this one.
And one small and two.
So this code gets printed.
The second high here and then I gets one big Ussel eyes to know eyes tune on two is not smaller than
two because two is too.
Therefore our loop stops and we don't want to so high.
So this it's like your basic phone.
And you can use it for example to print out all your list entries in a case if you want to print all
of our names we can make it like this consent form and it equals zero and then smaller
than names length with names or length we can get the links of all our list
and then plus plus.
So this links this and yeah invert function to get the names and the length of your list.
And then want to put the old
names and in all square brackets we give it and higher.
And if we run it's gets on all our names right here.
And this basically works like this.
We've got zero we've got zero small nod then name length.
And this could be a little bit complicated because names are links.
It's like three.
So we've got three items even if we start counting the zero.
If we want to get it all out.
So if you want to read all the firsts first name to use like names 0 if you want but the lengths length.
Sorry because it's got like three items this could.
Maybe a little bit complicated to understand but.
Yeah.
So banks just the count of the items saw.
Which puts three items so the length is three if you want to read it all out like this.
And we give them all to you.
So it looks like this.
So all eyes zeros you are smaller than three because names Nexus 3 because we've got three items in
our list and then we want to print all that names and we give it all a variable here.
So this is just zero.
That's just a starting point.
It's 0 and names 0 is.
So because we start counting with zero and our list gets printed on it gets one big.
So I as one all one is more than three names one get proto old I gets one big eyes to all two is small
and then 3 2 gets printed.
And tim one gets one big one.
Serino sorry serious not smaller than three.
So if all the loop stops are right.
So this is basically every saying you need to know for the basics of a loop.
And it's yeah if it's still on Klea it gets better if you have just one or two more looks and practice
and practice on it.
Yeah we won't use it too much in the Flores section.
And yet it gets definitely clearer if you use it to surf like some time can be a little bit complicated.
But if you just have questions you can write me or just read watch the video on the Anchia parts.