helper/helper.py
def clamp(n, minn, maxn):
    """
    Clamp an integer to a certain range.
    :param n: int to be clamped
    :param minn: lower bound
    :param maxn: upper bound
    :return: clamped int
    """
    return min(max(n, minn), maxn)

    Clamp an integer to a certain range.
    :param n: int to be clamped
    :param minn: lower bound
    :param maxn: upper bound
    :return: clamped int
    
Clamp an integer to a certain range.
Clamp an integer to a certain range .
def clamp(n, minn, maxn):
    return min(max(n, minn), maxn)
def clamp ( n , minn , maxn ) : return min ( max ( n , minn ) , maxn )
Clamp an integer to a certain range.
Clamp an integer to a certain range .
"""
    Clamp an integer to a certain range.
    :param n: int to be clamped
    :param minn: lower bound
    :param maxn: upper bound
    :return: clamped int
    """
None
n
int to be clamped
int to be clamped
minn
None
maxn
None