Looking again at the solution code, I tried to replace the two elif statements with if statements and the results were exactly the same.
Since we were taught that return is a statement which assigns a value to the function call, then when it follows a conditional (if) statement, this value is “stored” . Thus, another if statement may follow, which is “independent” from the previous. In that case, elif seems to be unnecessary.
Also, recalling again the lesson about Else If statements (example with donations), print was used in the code, not return, so the use of elif was the only way in order to be able to “control the order of checking each conditional statement” and have accurate results.
In conclusion, I am wondering, in any function with conditional statements when return is used , can if replace elif withοut changing the results ?