As a newbie programmer

Codewars Kata - How good are you really?

Codewars logo

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

Publish0x Publish0x

Reward the author with $0.01 in crypto, and earn yourself as you read!

20% to author / 80% to me.
Rewards are FREE. Publish0x pays them, not you.

Page not displaying correctly?