Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
please help with python My Birthday Function Write a well-documented Python program, hmwk4Q4.py, that simulates a single trial of a person walking into a room
please help with python My Birthday Function Write a well-documented Python program, hmwk4Q4.py, that simulates a single trial of a person walking into a room on N people and determining if their birthday matches any of the other N people in the room. Design a function myBirthday(N) that returns True if a match is found, or False if no match is found. Import the python random number module into your program. On a single trial, with a user input 200 people, you may not find someone with your birthday. If you manually rerun the simulation ten times, your code, however, should see that approximately four (4.22 exactly) times there is a match to your birthday. Grading: Correct main() function (+4 points). Include_name__ is set to ' _main_' to ensure the program initiates when it is run (+2 points). Correct myBirthday(N) function (+4 points)
please help with python
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started