Concept
Strings cannot be changed, so every method returns a new string: strip, lower, replace, startswith, find. Chaining them cleans input in one readable line.
The tutor works through these with you, in conversation and code. A session ends when you have shown them, not when a video does.
A few lines that show String methods doing its job.
raw = " Ada.Lovelace@Example.com \n"
email = raw.strip().lower()
print(email) # ada.lovelace@example.com
print(email.endswith("@example.com")) # True
print(email.replace(".", " "))
print("Error: disk".startswith("Error"))Calling name.strip() and expecting name to change. The original is untouched; you must keep the returned value, as in name = name.strip().
Your roadmap puts these before String methods, unless you already know them.
Once a session shows you understand String methods, it comes back for review. Each review takes a minute and tells the memory model how well you still know it.
Topics that build on String methods.