← Courses

Python for AI — Beginner Foundations

Data Science

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

Exercise — check your understanding

Using first and last, build full_name (the two joined by a space) and shout (the full name in capitals).

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