F-String

Domain: Programming Fundamentals

🎯 Motivation

Building strings by concatenation is clunky. F-strings let you embed variables directly into text.

📋 Concrete Example

name = 'Alice'; age = 14; print(f'My name is {name} and I am {age}') - variables are inserted right into the string.

🔗 Analogy

A fill-in-the-blanks story - ‘My name is ___ and I am ___’ where the blanks are automatically filled with your variable values.