Use Of Reduce Function In Python