← Back to the lesson: F-strings
Basic F-string
The exercise
Given: name = "Alex", age = 20
Use an f-string to print:
"My name is Alex and I am 20 years old"
Starter code
name = "Alex"
age = 20
# Print using f-string / Выведите с помощью f-строки
Write the code in the browser and run it — no installation needed.