Lisa Notes
Mar 29, 2026 · Fundamentals
Python String Formatting: % Placeholders vs f‑Strings Explained
This tutorial walks through Python's two main string formatting techniques—classic % placeholders and modern f‑strings—detailing specifiers like %d, %f, %s, %.2f, and providing concrete code examples that show how each method formats name, age, and salary variables.
Pythonf-stringspercent formatting
0 likes · 3 min read
