<｜begin▁of▁sentence｜>### Instruction:
Given a value of 10, a minimum value of 1, and a maximum value of 5, how would you use a function to ensure the value is not below the minimum or above the maximum, then print the adjusted value?
### Response:
def clamp(value, min_value, max_value):
    return max(min_value, min(value, max_value))

# Example usage
value = 10
min_value = 1
max_value = 5
clamped_value = clamp(value, min_value, max_value)
print(f'Clamped value: {clamped_value}')
<|EOT|>
