For Loop in Python: A Simple Guide

The for loop in Python is one of the main constructs you should be aware of to write flexible and clean Python programs. The Python for loop is a control flow statement that you can use to iterate over a sequence (e.g. a string, list, tuple, dictionary, set, string). The for statement executes a specific … Read more

Python args And kwargs Explained: All You Need to Know

Using args and kwargs can be quite cryptic especially if you are new to Python. Let’s find out together all you need to know about them. What are *args and **kwargs? *args and **kwargs allow to pass an arbitrary number of positional arguments (*args) and keyword arguments (**kwargs) to a Python function. You can use … Read more