Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function called 'findHighest() ' that will find and return the highest grade in the list called 'grades' in the following program. You can
Write a function called 'findHighest() ' that will find and return the highest grade in the list called 'grades' in the following program. You can assume that the list has already been properly initialized. The number of elements in the list is determined by the constant called 'SIZE'. import random SIZE = 1 theta def display(grades): for i in range (theta, SIZE, 1): print(grades [i]) def initialize(grades): for i in range (theta, SIZE, 1): grades.append(random.randrange(1, 1 theta 1)) def findHighest (grades): # Write your answer here # End answer space return(highest) def start(): grades = [] initialize(grades) display(grades) highest = findHighest(grades) print('highest', highest) start()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started