f-strings in Python

Python f-strings or formatted strings are new way of formatting strings introduced in Python 3.6 under PEP-498. It’s also called literal string interpolation. They provide a better way to format strings and make debugging easier too. What are f-strings? Strings in Python are usually enclosed in β€œ ” (double quotes) or β€˜ β€˜ ( single …

f-strings in Python Read More »