DEV Community

Discussion on: Print fixed fields using f-strings in Python

Collapse
 
jimratliff profile image
jimratliff

Thanks! Very helpful. Though I wondered where you found this documented. AFAICT, the link you provided (docs.python.org/3/library/string.html#format-string-syntax) doesn't cover f-strings but only the old-school strings. After searching a little… You might consider adding links to (a) 2.4.3. Formatted string literals (docs.python.org/3/reference/lexical_analysis.html#f-strings) and/or (b) PEP 498 – Literal String Interpolation