Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
What is going on, guys?
And in this section, we are talking about loops.
So loops, loops is considered to be a very powerful tool that we will use a lot in these Kooris and
in some of our future courses.
And basically only is simply allowing us to loop or to run over and over again some piece of code to
repeat some block of commands multiple times.
And that's not exactly what we've used so far.
Right.
That's not something that we've used in the previous videos or in the previous sections.
So we can say that up to this section, if we had some written commands, whether they were input output,
math operations or whatsoever, we knew that these commands will be executed just once.
They will simply be executed one after the other.
And once you're getting done with them, once you're done with them, you will move on to the next commands.
So you run some commands.
You're finished.
You're moving onto the next commands.
But there will be times when you would like to take some commands and repeat them, repeat some block
of code, not just running at once.
And one way to do so is by using a copy and paste technique and well, simply to copy some commands
and then beat them in your code as many times as you would like.
So that would be option number one.
And although this messy approach may work for some tasks, there are other challenges that this approach
will not even be capable of solving.
And luckily for us, as the future awesome programmers who know all the programming concepts right,
once we started loops, we'll be able to write such cool programs that we'll be capable of repeating
the same task, the same code over and over again until we tell it to stop.
And this will be done by using these awesome loops, statements instead of these messy copy and paste
approach.
So in this section, we are going to talk about loops and explaining details, what is a loop concept
and take a look into a couple of different types of loops, including while loops and for loops.
And we will learn how they can be used.
What are the differences between each of them?
What are the similarities and when you should prefer using one over the other?
We will also talk about what is an iteration and what it has to do with loops.
We will see how we can get out of loops.
What are the commands to do so?
And what loops have to do with the control, flow and conditions that we've learned in the previous
sections.
Also, if we will have time, we are going to take a look at a couple of examples and the concept of
using nested loops, which is similar to nested conditions just with loops.
It simply loops inside loops.
So basically is going to be fun and we will just enjoy this lesson a lot.
So in addition to all the interesting concepts that we are going to learn in this section, you are
also going to develop a really cool program that is going to answer the ten cents versus million dollar
question, which basically stands for if you would rather have one million dollars right now or you
would rather have one cent knowing that it will be doubled every day for the next 30 days.
And what you are going to do is you're going to develop a program that will be able to calculate and
answer this very interesting question.
So later on, you may either a share the school question as well as these program with your friends
and colleagues to see what they think of it.
And to let them choose what they think they would take and probably to prove them wrong.
So I hope you're ready for this section.
And let's get started.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.