In this lesson you learned about the following topics:
the range concept and its notation
the loops concept and the purpose of the loop
different kinds of loops: for, do-while, and while
how to control the flow of the loop using the break and continue statements
You use loops to repeat the same code for different data. If you want to iterate over a range or other
defined series of elements, use the for loop. If you want to loop until a certain condition is
met, use the while loop or do-while loop. When defining the range, remember to use the
appropriate operator depending on direction. If you use consecutive, adjacent ranges, choose the
open-ended variants.
I hope you enjoyed the lesson. In the next lesson, you will learn about the null values.
See you soon!
See forum comments
This content was released on May 22 2024. The official support period is 6-months
from this date.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.