Example For Reduce Function In Python