A programmer is writing a Python program to compare two integer test scores entered by the user and output which score is lower, or notify if they are equal.
Complete the program below by filling in the five gaps using the options provided in Figure 1. You will not need to use all the options. Each option should only be used once.
score1 = int(input("Enter first score: "))
score2 = _____ (input("Enter second score: "))
if score1 < score2:
print("Score 1 is lower: ", _____)
elif score1 _____ score2:
print("Score 2 is lower: ", _____)
_____
print("The scores are equal.")
Figure 1
| score1 | score2 | int | float |
| else: | elif | > | < |
| input | output | equal |
298 exam-style questions on AQA GCSE Computer Science Programming concepts. Each one has a worked solution and a mark scheme showing where the marks go.