Java Average Of Double Array Python Example