Answer to Question #285370 in Python for Ram

Question #285370

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


1
Expert's answer
2022-01-07T01:49:36-0500
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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS