Assignment expressions in Python
Learn about Python's new assignment expression syntax and walrus operator. Assignment expressions can cut down on boilerplate code and improve efficiency!
Learn about Python's new assignment expression syntax and walrus operator. Assignment expressions can cut down on boilerplate code and improve efficiency!
Learn how to use the collection module's namedtuples to make your Python code even more clear and readable!
Learn all about Python's divmod function, which allows us to easily perform floor division and modulo operations in one go!
You may be familiar with Python's format method, but what about the format function? Learn to use Python's formatting language without string interpolation!
In this post we cover a lesser known string method called partition. It has a lot of similarities to split, but there are some interesting differences.