Probability calculator : Failed test 3

i am unable to sort out the trouble in my program although i have taken a lot of help from this forum. this is my latest attempt to solve the problem. pls suggest any corrections.

Your code so far
this the block of code i have been trying to correct

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36.

Challenge: Probability Calculator

Link to the challenge: