runtime
33 / 500
question 33 Conditional Logic · easy

Check a typed age

A clinic form reads a patient's age. Before saving it, reject an age below 0 with Age can't be negative, and an age above 120 with Please check the age. Otherwise print Age saved: and the age. A newborn is 0.

Typed line34 here, after the prompt Age? . Check also types other ages
PrintsAge? Age saved: 34
Expected output1 line · typed 34
  1. 1Age? Age saved: 34

Loading your progress…

Check a typed age — Python practice · Runtime