Assessment Python Project - Churn Emails - Find Average Spam Confidence

Hi, below is my code in screenshot for the assessment, I am able to get the correct answer but there is error in the evaluation, kindly have a look and help me out with this please. Thanks

Solved, my mistake, there was a typo from my end ! I had made a mistake in naming the function !

average_span_confidence() ----> average_spam_confidence().

Thanks @satyajit_das . Yes, that was the mistake :slightly_smiling_face: