Golden Scores
Write a program to print all the Golden Scores in the list by maintaining their relative order.
Note: The last score is always a golden score.
sample input1
4 5 1 3 2
sample output1
5 3 2
sample input2
9 8 10 12
sample output2
12
def golden_score(scores):
return scores[-1]
sample_input1=[4,5,1,3,2]
golden_score(sample_input1)
2
sample_input2=[9,8,10,12]
golden_score(sample_input2)
12
Comments
Leave a comment