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.
Larz60+ write Jul-07-2022, 09:42 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use BBCode tags on future posts.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed for you this time. Please use BBCode tags on future posts.