A string is a sequence of text characters. We will work with strings using functions, string methods , and slicing expressions . We will also define functions that take strings as arguments.
And Read:
8.1, 8.2, 8.4, 8.5, 8.8 (except Lab 5 will use string method index()
instead of find()
, but the two string methods are similar) and the first paragraph of 8.9 (
html version
)
Slides: individual slides for viewing , 6-up layout for printing
Examples: String Extraction (original, fixed), Extraction Puzzle (original, fixed)
Questions and Answers: check the answers — after you try them on your own!