(Birthday Problem) Suppose that people enter an empty room until a pair of people share a birthday. On average, how many people will have to enter before there is a match? Write a program called birthday.py that accepts trials (int) as command-line argument, runs trials experiments to estimate this quantity โ each experiment involves sampling individuals until a pair of them share a birthday, and writes the value to standard output.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here