Online · Medan · Sumatra

Weekend Online Coding and Robotics Club in Medan, Sumatra

A weekend online coding and robotics club in Medan, Sumatra combines programming fundamentals and project practice in flexible multi-week modules so learners build confidence through consistent iteration.

Coding Club Medan

Video coming soon

Lesson notes and Q&A below are available now. The video will appear here when published.

1. Introduction: What Is a Nested Loop?

A nested loop is a programming structure where one loop (the inner loop) is placed inside the body of another loop (the outer loop). Python allows multiple levels of nesting, but nesting too deeply is discouraged because the code becomes hard to read and debug.

2. How Nested Loops Execute

For every single iteration of the outer loop, the inner loop runs through its entire cycle from start to finish.

Example with both loops using range(3):

for i in range(3):
    for j in range(3):
        print(i, j)

The outer loop runs 3 times. Each time it runs once, the inner loop completes all 3 of its iterations. Total inner-loop executions: 3 × 3 = 9.

3. Building a 4×4 Matrix of Zeros

Nested loops are essential for two-dimensional data. The outer loop walks rows; the inner loop walks columns:

matrix = []
for r in range(4):
    row = []
    for c in range(4):
        row.append(0)
    matrix.append(row)

print(matrix)

Result: a 4×4 grid filled with zeros.

4. Common Use Cases

  • Grids, visual patterns, and coordinate pairs
  • Pairwise comparisons between list elements
  • Matrix construction, population, and manipulation

Lesson Q&A

A nested loop places one loop inside another. Deep nesting is discouraged because it makes code difficult to read, follow, and debug.

For every iteration of the outer loop, the inner loop completes its full cycle. With both loops set to range(3), the outer runs 3 times and the inner runs 3 times per outer iteration, for 9 total executions of the inner body.

Nested loops suit grids, patterns, pairwise comparisons, and coordinate pairs. In matrices the outer loop iterates rows and the inner loop iterates columns, enabling construction and manipulation of multidimensional data (for example a 4×4 matrix of zeros).

What children can learn

WhatsApp +92 322 421 7059

AI and Robotics Club | The 100 Mission AI & Robotics Hero Journey

Recommended self-paced course for parents & educators

Maths for Future Coders on Udemy.

Disclosure: This page contains affiliate links. We may earn from qualifying purchases at no extra cost to you. Links are intended for parents and educators, not as marketing directed at young children.

Build, Code, Iterate: Club Structure for Medan Young Learners

Medan families seeking structured coding practice benefit from club-style modules without inventing a local campus. Enquire WhatsApp +92 322 4217059 or support@aiandroboticsclub.com.

Frequently asked questions

What is the weekly commitment for the Medan online coding and robotics club?

The weekend online club operates in flexible 4-week, 8-week, and 12-week modules with 60- to 90-minute live interactive sessions scheduled on Saturday and Sunday mornings/afternoons (WIB).

What certificates and benefits do Sumatra students receive upon completion?

Every graduate earns an official project completion certificate, digital skill badges, downloadable coding workbooks, and free access to 5 certified Udemy courses for continuous home learning.

What is the fastest way to register a student in Medan for the upcoming club cohort?

Click the WhatsApp button on this page to connect directly with our advisor, confirm open time slots, and lock in your child’s registration instantly.

Explore related learning

SurabayaPython · Surabaya South JakartaRobotics · South Jakarta BandungSTEM · Bandung