TalentJR apps
Apps are full of lists: scores, steps, names, messages. A loop repeats code once for each item, so three lines of code can handle a list of any length. A for loop with i going from 0 up to the list’s length visits positions 0, 1, 2 and so on to the last item. Inside the loop you can add up a total, count the items that pass a test, keep the biggest value or show each name in turn.
✓ You passed this lesson’s test.
One by one — “the loop visits positions 0, 1, 2 … up to the last item”
Use it for: Adding scores, counting passes, finding high scores and showing lists of names.
Check: 45 − 9 − 13 − 15 = 8 ✓
▶ Watch it animated✓ Written and checked by the TalentJR team · Updated 13 Oct 2026 · How we make our lessons
Work it out in your head or on paper, then tap your answer — or type it and press Check. Stuck? Press “Show me how”.
Right: 0 · Tried: 0
20 questions. Check each answer, then go to the next one. Get 16 or more right to pass.
🏅 Sign in with Google to earn the 🔁 List Loop Runner badge when you pass — and a certificate when you finish all 8 lessons of Part 3 · Logic and Building. You can still take the test without signing in.
Why does it work? When should you use it? Ask in English, मराठी or हिंदी.
Sign in with Google to ask Free — 20 questions a day.
Prefer a real teacher? TalentJR teachers take live online classes anywhere in India. Tell us what you need and our team will call you with timings and fees.