Python does not have a switch or case statement. See how to use dictionaries to emulate them.
Tag: python (page 2)
Getting started with Django
Learn how to install Django and start a project.
Pytest Test Parametrization
Learn how to avoid repetition and write simpler and easy to read tests using the pytest parametrization feature.
Testing Python Code Using Pytest
Learn how to install pytest and use it to discover, run, and skip test functions.
Remote development using PyCharm
PyCharm supports remote development. Learn how to set it up in this article.
Working With Files in Python
Have you ever wondered how you can use Python to work with…
*args and **kwargs explained.
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.
Using Python’s tempfile module
Recently at work, I had to write a tool that processes files…
ZimboPy August 2018 Mentorship Week
ZimboPy Mentorship Week ZimboPy is an organisation made up of Python Developers…
Python GUI Development with GTK+ — Grid
The GTK+ Grid is a container that arranges its children into rows…