Blog

Python F-Strings
May 8, 2023

Python F-Strings Tricks You Should Know

Python F-strings are a handy tool for creating more readable and concise Python code. They allow you to embed variables and expressions inside string literals. When processing f-strings, the parser pushes a new tokenizer mode on top of the regular Python tokenizer mode stack. This mode usually tokenizes the f-string expression part until a:,! or […]

Read More