About this deal
Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Python 3's F-Strings: An Improved String Formatting Syntax In the second example, you use the :=
By the end of this tutorial, you’ll know why f-strings are such a powerful tool that you should learn and master as a Python developer. In the first example, you use the :.2f format specifier. This specifier tells .format() to format the input value as a floating-point number with a precision of two. This way, you can represent currency values.
Great Deal
Free UK shipping. 15 day free returns.
Community Updates