def estimate(idx):
    x = 1 - random.random() * 2
    y = random.random() * 2 - 1
    return 1 if (x*x + y*y < 1) else 0
dataset/ETHPy150Open DistrictDataLabs/spark-workshop/apps/pi.py/estimate/swapped operands of `-`