Full threadhwc·math.sqrt(x[0]2 + x[1]2 + x[2]2)can be simplified to:math.sqrt(sum(v2 for v in x))View on HN