Skip to main content

Month 5 of 12

Loops and Repetition

Repeating tasks with for and while loops, and printing patterns. This is Month 5 of the 12-month Brolly Python course for kids aged 9 to 15, and it ends with a test and the project “Multiplication Table Generator”.

  • 4 weeks
  • 8 live classes
  • a test and a project
Month 5
×107 × 1 = 77 × 2 = 147 × 3 = 21for i in range(10):

8 classes in 4 weeks

The classes

2 live classes a week, in this order. Under each class is what it teaches.

  1. Week 1

    Repeating with Loops

    1. Class 1 of 8 · No. 33Introduction to Loops
      • Explain what a loop is and why programs repeat things
      • Spot repetition in everyday life and in code
      • Run your first loop that repeats a print()
    2. Class 2 of 8 · No. 34The for Loop
      • Write a for loop with a loop variable
      • Loop over the letters of a string
      • Keep a running total inside a loop
  2. Week 2

    Counting and Conditions in Loops

    1. Class 3 of 8 · No. 35The range() Function
      • Use range(stop), range(start, stop) and range(start, stop, step)
      • Know that range stops just before the stop number
      • Count up, count down and skip numbers with a step
    2. Class 4 of 8 · No. 36The while Loop
      • Repeat code while a condition stays True
      • Change the variable inside the loop so the loop ends
      • Choose between for and while
  3. Week 3

    Using and Controlling Loops

    1. Class 5 of 8 · No. 37Multiplication Tables with Loops
      • Repeat a calculation with for and range()
      • Print a times table neatly
      • Change the whole table with one variable
    2. Class 6 of 8 · No. 38The break and continue Statements
      • Stop a loop early with break
      • Skip one turn of a loop with continue
      • Use while True with break for menus and games
  4. Week 4

    Loops inside Loops

    1. Class 7 of 8 · No. 39Nested Loops
      • Put one loop inside another
      • Know that the inner loop runs completely for each turn of the outer loop
      • Print grids and tables with rows and columns
    2. Class 8 of 8 · No. 40Number Patterns
      • Print triangle patterns where each row is longer than the last
      • Use the row number to decide how much to print
      • Build number patterns like 1, 12, 123
  5. End of the month

    Revise, take the test, build the project

    1. Step 1

      Monthly revision

      Everything from the month, before the test

    2. Step 2

      Month 5 test

      60 minutes · 50 marks · 6 parts

      • AMultiple Choice Questions
      • BFill in the Blanks
      • CFind the Output
      • DFind and Correct the Error
      • EPractical Coding
      • FLogical Thinking

After each live class, its examples and practice for your child's age open in the Brolly Python app.

on the year road

Where Month 5 sits in the course

The course is one road of 12 months. The months before this one are filled in, Month 5 is the gold stop, and the months still ahead are dashed.

  • Months 1 to 4
  • Months 5 to 8
  • Months 9 to 12

next step

See if the course suits your child

Book a free trial class, online or at our Hyderabad centre. A teacher will answer your questions, help you choose a batch and tell you the fees.