Question: (b) Find the output of the following scripts in Python. Note: All statements are valid. [15 points] --------------------------------- i. def display_grade(s): if s
(b) Find the output of the following scripts in Python. Note: All statements are valid. [15 points] --------------------------------- i. def display_grade(s): if s <= 50: print Grade: F print Grade: P display_grade(50) --------------------------------- ii. def display_grade(s): if s <= 50: return Grade: F return Grade: P print display_grade(50) --------------------------------- iii. def display_grade(s): if s <= 50: return Grade: F print Grade: P print display_grade(50)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
