def prod(list): def mutil(x, y): return x * y return reduce(mutil, list)
print('1 2 3 * 4 =', prod([1, 2, 3, 4]))
```
Sign in to make a reply
AI吃葡萄干
def prod(list): def mutil(x, y): return x * y return reduce(mutil, list)
print('1 2 3 * 4 =', prod([1, 2, 3, 4]))
```