Ok so I\'m defining a function that takes a variable number of inputs and clamps each of them
def clamp(*args): return [ max(min(arg, 0.8), 0.2) for arg in a
def clamp(*args): rt = [max(min(arg, 0.8), 0.2) for arg in args] return rt if len(rt) > 1 else rt[0]
or else, remember how you make a tuple of one element. Put a comma after A to force unpack for a single variable.
A
A, = clamp(0.12) # with your old function which always returns list