Sep 11: Indexing and F-strings
Meet in King 248
Learning Objectives
After today's class, you should be able to:
- Concatenate and repeat strings using the
+and*operators. - Retrieve one character of a string using an index.
- Write an f-string with multiple expressions and format specifiers.
Lesson Outline
Presentation [10 min]
- Indexing a string, including what negative indexes do
Mini Lecture [10 min]
- Introduction to f-strings
Two Problems [30 min]