Skip to content · ⁨Saltar al contenido⁩

Nested loops & 2-D lists · ⁨Bucles anidados y listas 2-D⁩

English

A loop inside a loop

  • You can put one loop inside another loop.
  • For every pass of the outer loop, the inner loop runs fully.
  • So an outer of 2 and an inner of 3 runs the body 2 × 3 = 6 times.
Español

Un bucle dentro de otro

  • Puedes colocar un bucle dentro de otro bucle.
  • Por cada paso del bucle externo, el bucle interno se ejecuta completamente.
  • Por lo tanto, un externo de 2 y un interno de 3 ejecutan el cuerpo 2 × 3 = 6 veces.

Handout · ⁨Material⁩

Log in or create account · ⁨Iniciar sesión o crear cuenta⁩

IGCSE, A-Level & AP