The question is mainly about showing, for two permutations $\sigma, \pi \in S_{n}$, that $\mathrm{sgn}(\sigma \pi) = \mathrm{sgn}(\sigma) \mathrm{sgn}(\pi)$ using inversions of permutations (i.e. a pair $\{i,j\}$ where $i<j$ is an inversion of $\sigma$ if $\sigma(i) > \sigma{j}$).
The proof I saw was that $\{i,j\}$ is an inversion of $\sigma \pi$ if and only if $\{i,j\}$ is an inversion of $\pi$ and $\{\pi(i),\pi(j)\}$ is not an inversion of $\sigma$, OR $\{i,j\}$ is not an inversion of $\pi$ and $\{\pi(i),\pi(j)\}$ is an inversion of $\sigma$, which is easy to verify.
However, in the following step, it was claimed that $\mod 2$ we have:
$\#$ of inversions of $\sigma \pi$ $\equiv$ $\#$ of inversions of $\pi$ + $\#$ of inversions of $\sigma$
Then, the desired result follows as the sign of a permutation was defined to be the number of inversions. The main problem I have with this proof is the fact that the $\#$ of inversions of $\sigma \pi$ $\equiv$ $\#$ of inversions of $\pi$ + $\#$ of inversions of $\sigma$ in $\mod 2$. I don't see why does that relationship hold from the previous results.
Thanks for the help.