Birthday paradox- test cases not passing

This question is from the number theory section. 6 of the 7 test cases aren’t passing. Can anyone? explain what’s wrong?

Hi Aditi! ur code is fine except one thing. You are calculating probability of people not having same birthday , so u have to replace pr with 1-pr. And you have to handle the case when pr=1.
Okay , go through this you will be able to understand

I think there is some problem with test case 1 as my all answer are comming correct then also it is showing wrong answer can you pls check this my code.