Basics

args and kwargs

Passing multiple arguments to a function *args and **kwargs allow you to pass multiple arguments or keyword arguments to a function. For example, we neede to take a various numbers of arguments and compute their sum.

zip

zip(): creates an iterator that will aggregate elements from two or more iterables. According to the official documentation, Python’s zip() function behaves as follows: Returns an iterator of tuples, where the i-th tuple contains the i-th element from each of the argument sequences or iterables.