The function f(x) takes city or country names as input and returns the corresponding continent that the city or country is located in.

