Session 9: Working with Strings
After this lesson, students will be able to:
- Understand the way Python stores and uses strings.
- Describe the way strings are traversed with a loop.
- Compare strings and substrings.
- Understanding string functions.
- Prepare a coding project on palindrome string.
In this session, students will be learning about the string basics, different string operations which can be performed in python and various string functions available in python.
Students are given introduction about the concept of strings in python. They are then taught about basics of strings. Different operations that can be performed with the strings in python. Students are given introduction about the various string functions available in python and briefed about each of their’s functionality. Finally, we give them a step-by-step guide to make a project in Pictoblox to decide whether a given string is palindrome or not.
- Creating a project which displays whether a given string is palindrome or not.
- Lecture Slide Contains the lecture slide. Teacher can use it as a tool to cover the concept during the classroom.
- Activity Sheet Contains the step by step process to complete the activity. Students and teachers can us it as a reference.
- Worksheet Contains the worksheet for taking quiz in the class.
- Solved Worksheet Contains the solved worksheet.
Title | Description | File |
---|---|---|
Palindrome string | The project demonstrates how to decide whether a given string is palindrome or not. | https://learn.edustream.ae/wp-content/uploads/2022/06/CL9_CH9_Palindrome-String.sb3 |
Title | Approximate Duration | Procedure | Reference Material |
---|---|---|---|
String Basics | 5 |
| Lecture Slide |
String functions | 10 |
| Lecture Slide |
Activity : Palindrome string | 20 |
| PictoBlox file, Lecture Slide and Activity sheet |
Concluding the lecture | 5 |
| Lecture Slide |
- Make sure each PC has the latest version of PictoBlox installed and running.
- Make sure they write the script by selecting the appropriate sprite.
- Make sure they use the right palettes of Pictoblox Python interface for different functions while writing the code.
- Make sure students save their codes/scripts.
- Make sure they shut down the PC/Laptops.