Guide
Python
Beginner
Strings: Chapter Practice
Apply strings with a mini lab and knowledge check.
Mini lab
Normalize " WEB-01 " for a case-insensitive lookup.
Expected output: web-01
Hint
Use the chapter examples to choose the operation, then run your version before opening the solution.Show solution
name = " WEB-01 "
print(name.strip().lower())
Knowledge check
Does strip() modify the original string?
Check your answer
No. String methods return new strings.Finish the chapter
- Explain each operation without reading the lesson.
- Change the sample input and predict the output before running it.
- Revisit the chapter if the result differs from your prediction.
Add More Questions to This Guide
Know a question that should be here? Share it and help the community!
Open Google Form