Answer to Question #336645 in Python for Putsununu

Question #336645

write python program that reads in the number of judges at a competition and reads in a mark for each judge. write out the highest mark, lowest mark and final mark.


1
Expert's answer
2022-05-03T14:19:04-0400
num = int(input("Enter number of judges: "))
mark = []
final = 0
for i in range(num):
    print("Enter the mark for " + str(i+1) + " judge:", end=' ')
    mark.append(int(input()))
    final += mark[i]

print("&&&&&&&&&&&&&&&&&&&&&&&&&&")
print("&&   Highest mark: " + str(max(mark)) + "\t&&")
print("&&   Lowest mark:  " + str(min(mark)) + "\t&&")
print("&&   Final mark:   " + str(final/num) + "\t&&")
print("&&&&&&&&&&&&&&&&&&&&&&&&&&")

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