DevTechieBuilt-in Context Managers in PythonThis article explores concept of context manager and some of the Python’s built-in context managers. So, let’s begin.Sep 17Sep 17
DevTechiePython — try … finally versus withIn Python, both try . . . finally and with statement can be used for resource management. Let’s explore the differences between them in…Sep 1Sep 1
DevTechieRaising Exceptions in PythonThis article explains how to raise an exception explicitly via the code.Jul 17Jul 17
DevTechiePython: try … except … else and try … finallyIn Python, exception handling allows you to gracefully handle errors or unexpected situations that might occur during program execution…May 21May 21
DevTechieFormatting string — .format() methodBefore Python 3.6, there were two basic tools for interpolating (mixing) values, variables, and expressions within string literals:May 16May 16
DevTechief-strings in PythonBefore Python 3.6, there were two basic tools for interpolating (mixing) values, variables, and expressions within string literals — (1)…May 13May 13
DevTechiePython: Handling Specific ExceptionsIn Python, exception handling allows you to gracefully handle errors or unexpected situations that might occur during program execution…May 2May 2
DevTechieLambda Function — Key Use CasesPython has an elegant way to write on-the-fly functions called lambda functions. The article elaborates on the real use-cases i.e. the…Apr 15Apr 15
DevTechieExceptions in PythonAn exception is an event which can terminate your program execution. This article explains the concept of exceptions as well as outlines…Apr 12Apr 12
DevTechiePython % operator for String InterpolationYou may be surprised to know that there are many ways to format strings in Python. Before Python 3.6, there were two basic tools for…Apr 10Apr 10