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 …