Scholarship Check
Python
25 pts
Scholarship Check
A student gets a scholarship if their average is at least 85 and they missed fewer than 5 days.
- Create
good_marksandgood_attendanceusing comparisons. - Create
eligiblethat isTrueonly when both are true (useand). - Print the three booleans, one per line.
With the given data, the expected output is:
True False False
Checklist
- Keep the given
averageanddays_missed. - Create
good_markswith a comparison: the average is at least 85. - Create
good_attendancewith a comparison: fewer than 5 days missed. - Create
eligible, which isTrueonly when both rules are true. - Print the three booleans, one per line.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
