The zip function
Last updated: Fri. Dec. 5, 2025
The zip() function loops over several iterables in parallel and produces tuples with an item from each one. It has the syntax zip(*iterables, strict=False). It returns an iterator of tuples, where the i-th tuple contains the i-th element from each of the iterables passed
How to get all the Keywords in Python?
Last updated: Thu. Dec. 4, 2025
When naming variables in Python, you are not allowed to use keywords as variable names. This means that you should familiarise yourself with the Python keywords.
Python generously provides a module that helps with this called the keyword module. All you have to do is import the mod
Built-in sum function in Python
Last updated: Thu. Dec. 4, 2025
Python's sum() function is used to find the total of numbers in an iterable (i.e. list, tuple, set or dictionary). A simple example is:
print(sum([8, 5, 7]))
This will return 20 because 0 + 8 + 5 + 7 = 20. The 0
Python's Built-in max function
Last updated: Thu. Dec. 4, 2025
This function returns the largest item in an iterable or the largest of two or more arguments. An iterable can be a string, list, tuple, dict, set, etc. If one positional argument is provided, it has to be an iterable and the max() function will return the largest item i