Solution (source code)

= Solution

The <expected value> of the discrete <uniform distribution> is
$$
\boxed{\mathbb E[X]=\frac{1+2+3+4+5+6}{6}=\frac72.}
$$