Cia is building a program to generate a Report Card for students. She has to check if the student has scored greater than or equal to 45 marks. If they have, she has to print You have passed. If they have scored fewer marks, she has to print You have failed. To simplify the print code, she has decided to add the two print statements in the functions print_passed
and print_failed
.
Help Cia build this program by defining two functions that print the text given above. i.e When print_passed
is called, print You have passed. When print_failed
is called print You have failed.