Can you please help me with write a python program to read five scores and output the average score and also output the amount by which that score differes from the average.
I have done the average part but I don't know how to get the difference of all the scores from average. Please help.
Total_exam = 0
for n in range(5):
score = float(input("Enter a score:"))
Total_exam = Total_exam + score #for average calculation
#using average formula to calculate average
avg = Total_exam/5
print("The average score is", avg)