Python: Format String
Ways to Format String
Format String lets you embed values in a template string, or convert different type of values to string.
To format a string:
- Python: f-String (Format, Template) → best
- Python: String Format Method → good
- Python: Percent Format String → not good
Note, there is no sprintf that is in C lang.
Python, format string
Python, String
- Python: Quote String
- Python: Triple Quote String
- Python: Raw String
- Python: String Prefix Char
- Python: f-String (Format, Template)
- Python: String Escape Sequence
- Python: Unicode Escape Sequence
- Python: Print String
- Python: Print Without Newline
- Python: Convert to String
- Python: Join String
- Python: Format String
- Python: String Methods
- Python: Search Substring
- Python: Split String
- Python: String, Check Case, Char Class
- Python: Letter Case Conversion
- Python: Unicode 🐍
- Python 2: Unicode Tutorial