Javascript Reduce Array Function In Python Examples