Cia has realized she can improve her program by evaluating the score within a function itself and having it print the result accordingly.
Help her write a function where she can pass the score as an argument to the function print_result
, and get the text as follows:
- If the score is, or over 45, print You have passed the test with a score of X.
- If the score is below 45, print You have failed the test with a score of X.