Jul-07-2022, 01:56 PM
from array import * # Must locate and return the smallest value from a list def find_smallest(): pass # Must locate and return the largest value from a list def find_largest(): pass # Must ask for scores and return them as a list def get_scores(a): for i in range (0,6) : input("Please input the scores",a[i]) return a # print title print("Diving Scores 1b") scores = array('i', [ 1,2,3,4,5,6,7] ) for j in range (0,6) : print(" The scores are",get_scores(scores[j])) # Request all 7 scores - call get_scores() # Request the degree of difficulty - includes decimals (no error checking required) # calculate and display the final scoreI am not sure how to pass parameters with an array and how to define the input in the function.