The judges gave these scores:
scores = [7, 8, 9, 10, 5, 6, 7, 3, 4]Write programs to:
- Print each score. (loop counter pattern)
- Print each score doubled. (loop counter pattern)
- Print all the scores in this list that are greater than 5. (loop and filter)
- Print all the scores in this list that are odd. (loop and filter)
- Print the total of the scores in this list. (accumulator pattern)
- Print the total of all the scores that are greater than 5. (accumulator + filter pattern)
- Print the total of all the scores that are odd. (accumulator + filter pattern)
- Print the count of the number of scores in the list that are greater than 5. (accumulator + filter pattern)
- Print the count of the number of scores in the list that are odd. (accumulator + filter pattern)
- Print the average score.
- Print the largest score. (Hint: accumulator pattern with an if statement)
- Print the smallest score. (You can assume a score cannot be larger than 10.)
- Print the total score minus the largest and the smallest score.
- Print the average score minus the largest and smallest score.