The function f(x) takes a word input and returns the continent the input is associated with. For example, if the input is a country or a famous landmark, it returns the continent that the input is located in.

