Select Page

How to Calculate the Cartesian Product in Python

The Cartesian product of two sets A and B denoted A x B is the set of all possible ordered pairs (a, b), where a is in A and b is in B. We can get the Cartesian product between two lists saved as a 2D list in Python. This tutorial will go through different methods to...

How-to Guide for Python Uppercase

In Python, we can use built-in functions to manipulate strings. For example, we may want to capitalize the first characters in a name for form entry. The upper() function is helpful for converting all case-based characters in a string to uppercase. We can use the...