Python Maths Max Value Cappy at x
def clamp(n, minn, maxn):
return max(min(maxn, n), minn)
Elated Earthworm
def clamp(n, minn, maxn):
return max(min(maxn, n), minn)