694 shaares
4 liens privés
4 liens privés
Python’s F-String was added in Python 3.6.0 as PEP-498 – Literal String Interpolation. Before the introduction of Python f-strings, there were other methods of formatting like %-formatting, str.format() or string.Template(). These methods have their advantages, but the major disadvantage is that they are difficult to use. But, Python f-string is termed as the easiest way to format the string and hence became the most popular feature of Python3.