👉 In mathematics, an assignment is a function that assigns to each element of one set (the domain) exactly one element from another set (the range). The elements in the domain are called the variables or arguments, and the elements in the range are called the values.
For example, consider the following function:
```
function f(x):
return x
2
```
This function assigns to each value of the variable `x` a corresponding value of the function `f`. For example,