Using Reduce Function In Python Example