What"s wrong with my code?

did the same thing as expected in the concept but some of the test cases seems to not work with the code .
pls help.
thanks

hello @pewpiyu

if prob == 1
print 366

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

Nope its not working although the its given in question to take 365 days.