The Codomain is the set of values that could possibly come out. The Codomain is actually part of the definition of the function. And The Range is the set of values that actually do come out. Example: we can define a function f(x)=2x with a domain and codomain of integers. (got the answer from google hehe)