← Back to the lesson: F-strings
F-string Calculation
The exercise
Given: x = 10, y = 7
Use an f-string to print:
"10 + 7 = 17"
"10 - 7 = 3"
"10 * 7 = 70"
Starter code
x = 10
y = 7
# Print calculations using f-strings / Выведите вычисления с f-строками
Write the code in the browser and run it — no installation needed.