String Formatting with Python 3’s f-Strings
Introduction Python 3.6 introduced a new way to format strings: f-Strings. It is faster than other string formatting methods in Python, and they allow us to evaluate Python expressions inside a string. In this post, we’ll look at the various ways we can format strings in Python. Then we’ll have a deeper look at f-Strings, looking at how we can use it when displaying different data. Traditional String Formatting in Python Before we get into f-Strings, let’s have a look […]
Read more