Students will learn how indexing can be used to specify a specific character in a string based on location.
Students will be able to:
Students will learn how slicing allows them to select multiple string values at once from a given string.
Students will be able to:
In Python, strings have the property of “immutability” which means they cannot be mutated or changed. You can assign strings to variables, and reassign new strings to the same variable, but individual characters within a string cannot be reassigned.
Students will be able to:
In this lesson, students will look at the use of for loops with strings. Since both string indices and for loops index at zero, the len
value can be used to go through strings in a for loop. Indicies don’t need to be explicitly used. The syntax for character in my_string
can be used to go through a for loop one character at a time.
Students will be able to:
In this lesson, students will see how the in
keyword can be used in an if
statement to see if a particular letter or substring is in a string.
Students will be able to:
in
keyword to check if a character is in a stringIn this lesson, students will learn about string methods. Methods are basically functions that you call on objects and can be used to alter our strings in different ways.
Students will be able to:
In this lesson, students review content with a 20 question Unit Quiz.
Students will be able to: