Python dictionary with keys having multiple inputs
How to create a dictionary where a key is formed using inputs?
Let us consider an example where have an equation for three input variables, x, y, and z. We want to store values of equation for different input triplets.
Example 2: Let’s get access to the keys.
Let us consider a dictionary where longitude and latitude are the keys and the place to which they belong to is the value.
Now that the keys(latitude, longitude) and values(place) are stored in a list, we can access it easily.