Question: : Write a function named evaluate _ grade that determines whether a student has passed or failed an exam. The function should have three parameters:
: Write a function named evaluategrade that determines whether a student has passed or failed an exam. The function should have three parameters:
name positionalonly: The name of the student.
score positionalonly: The student's score on the exam. Assume this will always be an integer in the range of through
passingscore keywordonly, with the default value : The minimum score required to pass the exam.
If the student's score is greaterthan or equalto passingscore, the function should print the message passed the exam.", where is the value of the name parameter. Otherwise, it should print the message failed the exam.".
evaluategradenamescorepassingscore:
ifscorepassingscore:
printfnamepassedtheexam
else:
printfnamefailedtheexam
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
