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).
8.6m questions
11.3m answers