In the previous section, we briefly looked at the Euclidean distance and cosine similarity. In this exercise, you are going to implement a function that computes the Manhattan distance.
The Manhattan distance, also known as the taxicab distance, between two vectors and is defined as:
where represents the absolute value.
Define a function called manhattan_distance
, which takes as input two lists of numeric values (representing two vectors) and returns the Manhattan distance between them.