Py

Working with Text

Module 3 of 14, Beginner
🔤

Working with Text

Strings, indexing, slicing, methods and f-strings.

0 of 5 lessons complete

5 lessons, 46 min

Start module

Lessons

1

Strings and joining text

Combine strings with + and *, measure them with len() and convert with str().

8 min
2

Indexing and slicing

Pick out single characters and substrings by position.

10 min
3

String methods

Change case, trim spaces, replace, count and search inside text.

10 min
4

Splitting and joining

Break text into pieces with split() and glue pieces together with join().

8 min
5

f-strings

Drop variables and expressions straight into text, and format numbers neatly.

10 min
🔀
Next module

Making Decisions