Codewars logo

Codewars Kata - How good are you really?

By Lochard | As a newbie programmer | 30 Jul 2023


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 )

 

How do you rate this article?

4


Lochard
Lochard

20240228 Arrived in the UK for about 2 week. All my fears persist. Some are even getting worse. https://github.com/locharp/asylum_diary/


As a newbie programmer
As a newbie programmer

Sharing entry level codes. My snippets on GitHub https://github.com/locharp/code-snippets

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.