Check out example codes for "kotlin simple for loop". It will help you in understanding the concepts better.

Code Example 1

val names = listOf("Jack", "John", "Tim")
for(name in names){
	println(name)
}

Learn ReactJs, React Native from akashmittal.com