Did EVERY Test Pass, or Did ANY Fail?
Redhill Driving School marks a theory paper for each candidate in a session, then faces two decisions before anyone goes home. If the whole session passed, the instructor prints the certificates on the spot. If even one candidate fell short, a re-sit room has to be booked for the following week. The pass mark is 60, and a paper scoring exactly 60 has passed.
Task: Print whether the whole session passed, then whether the session needs a re-sit room.
Input
The first line holds an integer n, the count of candidates in the session. Each of the next n lines holds one candidate's score.
Output
Two lines. The first holds True if every candidate reached the pass mark and False otherwise. The second holds True if at least one candidate fell short of the pass mark and False otherwise. Write them exactly as Python writes a boolean, with a capital first letter.
Example:
Input:
3
65
70
80
Output:
True
False
Sign in to solve this problem
Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.
Sign in