Skip to main content
Loading page…
Python Mastery
Chapter 3
Lesson 1 of 4
String Basics & Immutability
Contents
Notes
Tutor
Concept
What Is a String?
Loading activity…
Previous
1 / 8
Continue
Contents
Notes
Discussion
Tutor
20 min
8 activities
0 of 8 done
In this lesson
1
What Is a String?
2
Escape Sequences
3
Immutability — Strings Never Change
4
Core String Operations
5
Immutability Check
6
Pitfall: Concatenation in a Loop
7
Build a Decorated Title
8
Pro Tip: Use `in` for Readable Membership Tests
Objectives
Learner can create strings using single, double, and triple quotes
Learner can explain why strings are immutable and what that means in practice
Learner can use escape sequences including \n, \t, and \\
Learner can combine strings with concatenation and repetition and test membership with in
Chapter 3 · Working with Strings
String Basics & Immutability
Indexing & Slicing
Essential String Methods
f-strings & Formatting
Previous: Input, Output & Type Conversion
Next: Indexing & Slicing