Statistics Function In Python Example