Basics · Lesson 26 of 76

Strings

A string is text, written in quotes. You can join, measure, and reshape it:

Python

f-strings drop variables straight into text — the cleanest way to build a message:

Python

Your turn: build an f-string that greets a name stored in a variable.

Check your understanding

You’re reading for free. Sign in to keep your progress and earn a certificate when you finish.Sign in to keep my progress →

Lesson 26 of 76