Lesson 1 of 0
In Progress

Challenge 11

Kedeisha July 12, 2023

The code is supposed to return the product of all the numbers in the list. However, it’s throwing an error.

				
					from functools import reduce

numbers = [1, 2, 3, 4, 5]
product = reduce((lambda x, y: x * y), numbers)

print(product)