Both are correct
P: sum of odd degree $+$ sum of even degree$=2\times \text{no. of edges}$
sum of odd degree$=2\times \text{no. of edges - sum of even degree}$
The right hand side must be even as the difference of $2$ even numbers is always even.
Q: each edge is counted twice so sum of degree is always even