Solution (source code)

= Solution

The <variance> is the second <moment> minus the square of the <expected value>:
$$
\boxed{\operatorname{Var}(X)=\frac{91}{6}-\left(\frac72\right)^2=\frac{35}{12}.}
$$