Ride height
Sign in to test your solution.
# 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.")
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.
Python sandbox
This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona.