Question: please write the python code for both part of this question. then I will definitely give you a like Suppose that we have a class

please write the python code for both part of this question. then I will definitely give you a like
please write the python code for both part of this question. then

Suppose that we have a class of n students. We assume that their birthdays are uniformly distributed over the days of the year. Question I:What is the probability that the class has two students having the same birthday? Write python code to simulate this. Question II: For what value of n (number of students in the class) the above probability is 0.5 ? Use the Python code you developed in question I, to find that value by trial and error (or a more sophisticated algorithm)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!