Problem with probability code (birthday matcher)

birthday matches

The code in this lesson does not work properly. When I entered ‘40’ for the #ChangeThisNumber I ended up with two sets of matching birthdays but it did not list them. Just wondering why it would do that but with other numbers in that spot it works. If anyone can tell me why this is, I am just curious seeing as this isn’t a project or lesson.

num_people_in_room = 40
The probability that two people in a room of 40 people have the same birthday is nearly 89.12%

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.