Loops (for / while)
For loops with ranges and lists, conditional repetition with while.
Simple enough for a 5-year-old to understand
range with for
The range written with two dots includes both the start and end values.
for (i in 1..5) { println(i)}Loop over a list
val languages = listOf("Kotlin", "Java")for (lang in languages) { println(lang)}🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)