Tag Archives: python

Did You Know? Python’s Walrus Operator Can Make Your Code Cleaner

Did you know? Since Python 3.8, you can use the walrus operator ( := ) to assign a value to a variable as part of an expression. It’s a small piece of syntax that can meaningfully tidy up loops and … Continue reading

Posted in Python | Tagged | Leave a comment

Did You Know? Python Dictionaries Preserve Insertion Order

Did you know? Since Python 3.7, the built-in 1dict type officially preserves the order in which keys are inserted. Before that, if you needed ordering guarantees you had to reach for 1collections.OrderedDict . Today, a plain dictionary is enough for … Continue reading

Posted in Python | Tagged | Leave a comment