Each gymnast in a competition receives scores from 5 judges


Each gymnast in a competition receives scores from 5 judges. Write a Python program to do the following.

  • In the main function, ask the user to enter 5 scores.  Store the scores in a list.
  • Invoke the function score_calculator and pass the whole list to it.
  • In the function score_calculator, calculate and display the average of the 5 scores.

 The following is an example.

Enter a score: 15.2

Enter a score: 14.9

Enter a score: 14.9

Enter a score: 15.3

Enter a score: 15.1

The average score is 15.079999999999998

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Each gymnast in a competition receives scores from 5 judges
Reference No:- TGS02511915

Now Priced at $10 (50% Discount)

Recommended (93%)

Rated (4.5/5)