C3_W1_Assignment Exercise 6

Hi, I have been stuck at this exercise for a while and I keep getting this error.
Can anyone help?

Apparently you haven’t assigned a value to probability_f. So it can’t use it in that statement.

That’s what I thought too, but I went back and saw that I did define it in the match/case section. I’m not sure why there is not an assigned value though.

Perhaps the value that is being passed is not a valid case.