def fun(x,y):
	return x*y
print reduce(fun,[1,2,3,4,5,6,7])
# the above reduce function will do the below job
res=fun(1,2)
for i in [3,4,5,6,7]:
	res=fun(res,i)
print(res)
7d65fe2ad236765b5af524b8612bfc2e8a5a2f09
def fun(x,y):
	return x*y
print reduce(fun,[1,2,3,4,5,6,7])
# the above reduce function will do the below job
res=fun(1,2)
for i in [3,4,5,6,7]:
	res=fun(res,i)
print(res)