Skip to main content

Month 6 of 12

String Operations

Working with text: slicing, formatting and string methods. This is Month 6 of the 12-month Brolly Python course for kids aged 9 to 15, and it ends with a test and the project “Word Reversal Application”.

  • 4 weeks
  • 8 live classes
  • a test and a project
Month 6
PYTHON012345-6-2-1word[1:4] → "YTH"

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

    Strings and Positions

    1. Class 1 of 8 · No. 41Introduction to Strings
      • Make strings with single, double and triple quotes
      • Find a string's length with len()
      • Check whether a word is inside a string with in
    2. Class 2 of 8 · No. 42String Indexing and Negative Indexing
      • Get one character with an index in square brackets
      • Count positions from 0 at the start and from -1 at the end
      • Avoid the "index out of range" error
  2. Week 2

    Cutting and Joining Strings

    1. Class 3 of 8 · No. 43String Slicing
      • Cut out part of a string with [start:end]
      • Leave out start or end to slice from the beginning or to the end
      • Use a step to skip characters or reverse a string
    2. Class 4 of 8 · No. 44String Concatenation and Repetition
      • Join strings with + to build new text
      • Repeat a string with *
      • Build a string piece by piece in a loop
  3. Week 3

    Formatting and Changing Case

    1. Class 5 of 8 · No. 45String Formatting
      • Put variables inside text with f-strings
      • Round numbers inside an f-string with :.2f
      • Line up columns with widths like :<10 and :>5
    2. Class 6 of 8 · No. 46The upper(), lower() and title() Methods
      • Change capitals with upper(), lower(), title() and capitalize()
      • Compare answers without worrying about capitals
      • Check text with isupper(), islower() and isdigit()
  4. Week 4

    More String Methods

    1. Class 7 of 8 · No. 47The split(), strip() and replace() Methods
      • Break a sentence into words with split()
      • Remove extra spaces with strip()
      • Change parts of a string with replace()
    2. Class 8 of 8 · No. 48Reversing Strings
      • Reverse a string with a slice and with a loop
      • Reverse the order of words in a sentence
      • Check for palindromes
  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 6 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 6 sits in the course

The course is one road of 12 months. The months before this one are filled in, Month 6 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.