M7) Call center review
A call center reviews every shift whose average call lasted more than 8 minutes. The average is the total minutes on the phone divided by the number of calls. A shift can have 0 calls, for example during a phone outage, and such a shift is not reviewed.
The function needs_review(calls, total_minutes) must return True when the shift needs a review and False otherwise. It must never stop with an error. Listing 1 shows 4 implementations.
Which implementations in Listing 1 meet the specification for every shift, including a shift with 0 calls?
needs_review (Question 1).