Average Function For Python Example Test Receipt