6 lines
97 B
Python
6 lines
97 B
Python
def product(xs: list[int | float]):
|
|
res = 1
|
|
for x in xs:
|
|
res *= x
|
|
return res
|