Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 333 Bytes

File metadata and controls

7 lines (6 loc) · 333 Bytes

Formatted string literals (f-strings) give a concise, consistent syntax that can replace most use cases for the % formatting operator, str.format() and string.Template.

F-strings can also perform better than alternatives; see this tweet for a simple example.