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
8 classes in 4 weeks
The classes
2 live classes a week, in this order. Under each class is what it teaches.
Week 1
Strings and Positions
- 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
- 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
- Class 1 of 8 · No. 41Introduction to Strings
Week 2
Cutting and Joining Strings
- 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
- 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
- Class 3 of 8 · No. 43String Slicing
Week 3
Formatting and Changing Case
- 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
- 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()
- Class 5 of 8 · No. 45String Formatting
Week 4
More String Methods
- 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()
- 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
- Class 7 of 8 · No. 47The split(), strip() and replace() Methods
End of the month
Revise, take the test, build the project
Step 1
Monthly revision
Everything from the month, before the test
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
Month 6 project
Word Reversal Application
An app that reverses words and sentences and changes their style
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.
- 1Month 1Introduction to Python
- 2Month 2Variables and Data Types
- 3Month 3Input, Output and Operators
- 4Month 4Conditional Statements
- 5Month 5Loops and Repetition
- 6Month 6String Operations
- 7Month 7Lists and Tuples
- 8Month 8Sets and Dictionaries
- 9Month 9Functions
- 10Month 10Advanced Python Basics
- 11Month 11Logical Thinking and Problem Solving
- 12Month 12Project Development
- 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.