6 great new Python features you don’t want to miss

0
104


Any programming language that fails to add new functionality over time has stopped being a technology with a future and become a technology of the past. Python 3 continues to move forward with the addition of significant new features, though it’s difficult to keep up with them when you’re preoccupied with the nitty-gritty of your development work.

Here are six of the newest features in the last few versions of Python 3 that not only deserve your attention, but probably a place in your software projects.

F-strings

The states that there should be one obvious way to do things. String formatting in Python deviates greatly from this rule, because there is a slew of ways to do it. But the , unveiled in Python 3.6, is both the fastest and among the most convenient. Nevertheless, many Python programmers, who learned string formatting on earlier versions of Python, don’t take advantage of them.