A useful built in function in Python is hasattr(). This function is…
In this post, I am going to go down memory lane and talk about my contributions to one of the open source communities I contribute to: Mozilla.
Python does not have a switch or case statement. See how to use dictionaries to emulate them.
Learn how to install Django and start a project.
Learn how to avoid repetition and write simpler and easy to read tests using the pytest parametrization feature.
Learn how to install pytest and use it to discover, run, and skip test functions.
PyCharm supports remote development. Learn how to set it up in this article.
Have you ever wondered how you can use Python to work with…
If you have ever felt confused when you came across code that contains *args and **kwargs as function parameters, you’re not alone. This syntax is used specify that a function can be called with any number of arguments and It can be very confusing at first. In this article, I explain what *args and **kwargs mean and how they can be used in function calls.
Recently at work, I had to write a tool that processes files…