Level 02: selections 0 of 9 activities solved
  1. 1. Ride height Not yet solved
  2. 2. Largest number Not yet solved
  3. 3. Seasons Not yet solved
  4. 4. States of water Not yet solved
  5. 5. HTTP status codes Not yet solved
  6. 6. Currency converter Not yet solved
  7. 7. Nitrate Not yet solved
  8. 8. Exam grade Not yet solved
  9. 9. Periodic table Not yet solved
Next series Level 03: condition controlled repetitions
Level 02: selections

1. Ride height

Sign in to hand in your solution and get feedback.

# Ride height program # ------------------------- # Subprograms # ------------------------- def valid_height(height): if height > 104: return True else: return False # ------------------------- # Main program # ------------------------- height = float(input("Enter the height of the person in cm: ")) if valid_height(height): print("Height OK.") else: print("Sorry, you are too small.")