Question: a) What would the following function print if 78 is passed as an argument? 1 def get_grade (score) : 2 3 if score > 90:

 a) What would the following function print if 78 is passed

a) What would the following function print if 78 is passed as an argument? 1 def get_grade (score) : 2 3 if score > 90: 4 print('A') 5 if score > 80: 6 print('B') 7 if score > 70: 8 print('C') 9 if score > 50: 10 print('D') 11 else: print('F) 12 b) What would the following function return if 78 passed as an argument? 1 def get_grade (score): 2 3 if score > 90: 4 return 'A' 5 if score > 80: 6 return 'B' 7 if score > 70: return 'C' if score > 50: 10 return 'D' 11 else: 12 return 'F' 13 to co Jo c c) Which code segment would print the expected output? Why? (justify your answer in a short answer only)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!