C3_W1_Assignment - prob_of_X_given_C

I’m getting the following error (KeyError: 28.625469068290815), and I’m not sure how to approach this:

In line 30, you are using “feature_val” incorrectly.
That’s a floating point value.
You want a dictionary key. Such as a breed of dog.

1 Like

OMG! Thanks so much! Such a basic thing I was struggling with. It worked :slight_smile: