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.

Lecture Prep

  1. String Functions (5 minutes) Let's look at some useful built-in functions that work with strings. ( alternative link , might load faster )
  2. Advanced String Expressions (12 minutes) Learn about the escape character that allows us to deal with special characters in strings. ( alternative link , might load faster )

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 )

Lecture Materials

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!

Link to Lecture Recording