Answer to Question #301417 in Python for kate

Question #301417

create a program that determines the type of medal of the total score.The users enters 3 scores from 3 sorts. 10 points is the highest scorein a sport


1
Expert's answer
2022-02-23T06:24:26-0500
'''
    create a program that determines the type of medal of the total score.
    The users enters 3 scores from 3 sorts. 10 points is the highest scorein a sport
'''


a = int(input("Enter Score (0 to 10) from Sport-1: "))
b = int(input("Enter Score (0 to 10) from Sport-2: "))
c = int(input("Enter Score (0 to 10) from Sport-3: "))


Score = (a+b+c)/3
print("Average Score = ",round(Score,2))
if(Score>=9): print("GOLD MEDAL")
if(Score>=7 and Score<9): print("SILVER MEDAL")
if(Score>=6 and Score<7): print("BRONZ MEDAL")

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