Question: PYTHON: I don't understand what is wrong with my code. To the left is the script, and to the right are the errors. What lines
PYTHON: I don't understand what is wrong with my code. To the left is the script, and to the right are the errors. What lines need to be fixed, and how? I think the letter_grade function is giving the most trouble.

Python 3.9.1 (v3.9.1:1e5d33e9b9, Dec 7 2020, 12:10:52) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license()' for more information. def main(): print (TITLE+LINE) test_list = [] test_list = get_test_list() lo = lo_grade(test_list) hi = hi grade(test list) avg = avg_grade (test_list) letter = letter_grade (avg_grade) display_grades (lo, hi, avg, letter) ===== RESTART: / Welcome to Tost Grade Analysis Program! def get_test_list(): test_list = [] i=1 while ic-SIZE: num = int(input("Enter test grade #6d in the range 9-100: "%i)) if(num >= 0 and num main() File * line 20, in main letter = letter_grade (avg_grade) File / line 52, in letter-grade if (avg_grade >= 90): TypeError: ">=' not supported between instances of function' and 'int' >>> | def lo_grade(test_list): test_list.sort() lo = test_list(e) return lo def hi_grade (test_list): test_list. sort() hi = test_list[len(test_list)-1] return hi def avg_grade (test_list): test = 0 for i in range(len(test_list)): test + test_list[i] avg = test/len(test list) return avg def letter_grade (avg_grade): if (avg_grade >= 90): print('A') elif (avg_grade >= 80 and avg_grade = 70 and avg_grade = 60 and avg.grade
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
