A small simulation in Python from random import randint oneBoy=0 twoBoys=0 # 0 = boy, 1 = girl for i in range(10000): s1 = randint(0,1) s2 = randint(0,1) if s1 * s2 == 0: # Here is at least one boy oneBoy = oneBoy+1 if…
A small simulation in Python from random import randint oneBoy=0 twoBoys=0 # 0 = boy, 1 = girl for i in range(10000): s1 = randint(0,1) s2 = randint(0,1) if s1 * s2 == 0: # Here is at least one boy oneBoy = oneBoy+1 if…