BuildlyBuildly
DashboardExercisesProfileHelp
Data Science/Module 1: Python Programming/Functions1/3
Exercise·5 min·10 XP

Clamp a Value

Write clamp(value, low, high) that returns value if it's between low and high (inclusive), low if it's below, high if it's above.

Previous
Customizable Greeting
Next
Discounted Price With Tax