Lochard avatar

Codewars Kata - How good are you really?

lochard

Published: 30 Jul 2023 › Updated: 30 Jul 2023Codewars Kata - How good are you really?

Codewars Kata - How good are you really?

DESCRIPTION:
There was a test in your class and you passed it. Congratulations!
But you're an ambitious person. You want to know if you're better than the average student in your class.

You receive an array with your peers' test scores. Now calculate the average and compare your score!

Return True if you're better, else False!

Note:
Your points are not included in the array of your class's points. For calculating the average point you may add your point to the given array!

def better_than_average( class_points, your_points) :
    return your_points > sum( class_points ) / len( class_points )

Leave Codewars Kata - How good are you really? to:

Written by

Asylum seeker who hopes to be rid of authoritarian and their surveillance.

Read more #programming posts


Best Posts From Lochard

We have not curated any of lochard's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Lochard