Do this Quiz on Session 15 as you watch the videos and do the reading (as listed below). This document is a Microsoft Word document; here is the same Quiz on Session 15 (pdf) as a PDF.
You can either:
All of the following are required except any items labeled Optional are, well, optional (i.e., things that may be interesting but do not directly pertain to your success in this course).
We have already encountered many things from this section, but there are several new things in this section as well. As you read, focus your attention on:
+
) and repetition ( *
) operators. (pages 49-50)
At first, just skim the list to get an idea of the rich collection of methods that are available.
Then, read and digest the details of the following string methods described at the above link:
capitalize
count
find
and index
isalpha
and other is ...
methods split
and join
strip
replace
This is an excellent, concise summary of strings. It covers ideas scattered across your textbook.
Don't try to memorize details from this section. Instead, just get the basic idea and refer back to this (and to the documentation at python.org) when needed.