Log in om je oplossingen te testen.
# 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.")

  Python sandbox

In dit venster kan je Python-code uitvoeren zonder iets te moeten installeren. De code die je hier schrijft wordt niet automatisch ingediend in Dodona.

Testgeval dat gedebugd wordt