Skip to main content

Probability Riddle Using Python: Family Statistics


Do men have more sisters than women?

Python Solution & Discussion:

At first, I got the solution wrong because I assumed in a family of 1 boy and 2 girls a boy would have 2 sisters while the girl would have one sister and this resulted in this wrong solution on my end:

But the right way to think about it is that in family of 1 boy and 2 girls, you have to look at one kid, regardless of gender, so the boy would have 2 sisters, but if the boy was a girl then she too would have 2 sisters as well. So the correct answer is no, both have the same number of sisters and the code would generate the same values. 

Riddle source: