Each program has one mistake. Tap the line where the mistake is, then choose the change to that line that makes the program work.
15
Age: 15
Step 1: tap the line where the mistake is.
valid = True
while not valid:
try:
age = int(input())
if age >= 0 and age <= 120:
else:
print('Age out of range.')
except ValueError:
print('Not a whole number.')
print('Age: ' + str(age))
You can still revise this topic