In this question, the OP asks how to construct a probability measure $\mu(k):[\mathbb{Q},\mathcal{F},P]\to\mathbb{R}$ over the set $\mathbb{Q}$ of Rational numbers, where $[\mathbb{Q},\mathcal{F},P]$ is a probability space. One of the answers suggests to let $\{q_n\}_{n=1}^\infty$ be an enumeration over $\mathbb{Q}$ and then defines the measure \begin{gather} \mu(E)=\sum_{k=1}^{\infty}\frac{1}{2^k}\delta_{q_k}(E), \end{gather} for each subset $E\subset\mathbb{Q}$, where $\delta_{q_k}(E)$ is the point mass (i.e., Dirac delta). The answer does not provide much context, and it does not explain why such a measure satisfies countable additivity nor why it returns results in the unit interval $[0, 1]\cap\mathbb{R}$, returning $0$ for the empty set and $1$ for the entire space. Could anybody please explain why such a measure is a probability measure over $\mathbb{Q}$?
BONUS QUESTION: Since the Cartesian product of any two countable spaces is also countable, could such a measure be extended to the $n$-dimensional set $\mathbb{Q}^N$?
Thank you all for your help.