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.
Source: How to Write Beautiful Python Code With PEP 8
Naming Conventions “Explicit is better than implicit.” — The Zen of Python
‼️ Note: Never use l (\ell), O (zero), or I (capital i) single letter names as these can be mistaken for 1 and 0, depending on typeface:
Source: Documenting Python Code: A Complete Guide
Commenting vs. Documenting Code Description Audience Commenting Purpose and design of code Maintainers and developers Documenting Use and functionality of code Users Commenting Code Comments are created in Python using the pound sign (#) and should be brief statements no longer than a few sentences.
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.