Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 526 Bytes

File metadata and controls

12 lines (9 loc) · 526 Bytes

📝 Python String Formatting Guide

This repository demonstrates the different ways to format strings in Python, which is a fundamental skill for any developer.

💡 What's Inside?

I have covered three main methods of formatting:

  1. Old Way (%): Using %s for strings and %d for numbers.
  2. New Way (.format()): Using curly braces {} and the .format() method.
  3. F-Strings: The modern and most efficient way using f"...".

Learning journey continues with Elzero Web School path. 🚀