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.
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("&&&&&&&&&&&&&&&&&&&&&&&&&&")
Comments
Leave a comment