Create a function that takes a number as input and returns True if the sum of its digits has the same parity as the entire number. Otherwise, return False.
parity_analysis(243) ➞ True
# 243 is odd and so is 9 (2 + 4 + 3)
parity_analysis(12) ➞ False
# 12 is even but 3 is odd (1 + 2)
parity_analysis(3) ➞ True
# 3 is odd and 3 is odd and 3 is odd (3)
True. The same goes if the number is odd and so is the sum of its digits.