Average Function For Python Example Equations