Yes, because for a function the output should always be the same for the same input.
So when you input 1 quarter you always get 2 gumballs. ( the number of gumballs is always 2 and doesn't change).
6.0m questions
7.9m answers