3 ms·
I think that's indeed what OP meant, but there's also: def abs(x): return x ... where adding the 'if' seems appropriate :)
by praptak 16y ago
I think that's indeed what OP meant, but there's also:
def abs(x):
return x
... where adding the 'if' seems appropriate :)