Python 3 latest code crumbs
Python's Finally block In Try Except
Feb 20, 2022 by erik
finally block is executed regardless of whether an exception occurs or not. Finally blocks are useful, for example, when you want to close a file or a network connection regardless of what happens. After all, you want to clean...
Swap two variables in Python without using a third
Feb 15, 2022 by erik
With this neat little trick, you can swap two Python variables without using a third variable. Source: python.land blog...