Unit 4 Task 6 - Solution

Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.

Solution - Task 6: Tall enough to ride

← Back to task


One possible program:

def can_ride(height_cm):
    return height_cm >= 120

print(can_ride(130))
print(can_ride(110))