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